コード例 #1
0
        /**
         * <summary>
         *   Returns the current length of the playing sequence.
         * <para>
         * </para>
         * <para>
         * </para>
         * </summary>
         * <returns>
         *   an integer corresponding to the current length of the playing sequence
         * </returns>
         * <para>
         *   On failure, throws an exception or returns <c>YBuzzer.PLAYSEQSIZE_INVALID</c>.
         * </para>
         */
        public int get_playSeqSize()
        {
            int res;

            if (_func == null)
            {
                throw new YoctoApiProxyException("No Buzzer connected");
            }
            res = _func.get_playSeqSize();
            if (res == YAPI.INVALID_INT)
            {
                res = _PlaySeqSize_INVALID;
            }
            return(res);
        }