RaumfeldNET.UPNPMediaList.removeItem C# (CSharp) Метод

removeItem() публичный Метод

public removeItem ( Int32 _itemIndexFrom, Int32 _itemIndexTo ) : void
_itemIndexFrom System.Int32
_itemIndexTo System.Int32
Результат void
        public virtual void removeItem(Int32 _itemIndexFrom, Int32 _itemIndexTo)
        {
            uint containerUpdateId;
            Boolean isQueueCreated;

            //if there is no queue the create a queue (do this with sync method!)
            isQueueCreated = this.createQueue();

            contentDirectory.RemoveFromQueueSync(containerId, Convert.ToUInt32(_itemIndexFrom), Convert.ToUInt32(_itemIndexTo), out containerUpdateId);

            if (isQueueCreated)
            {
                if (queueCreated != null) queueCreated(listId);
            }

            this.listActionDone();

            // INFO: rebuild of internal list will be done when retrieven the new information from renderer.
            // this may lead to a little "slow" playlist, but it will always be accurate!
        }