Table of Contents

Method RemoveRange

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

Removes a range of elements from the LavalinkQueue<T>.

public ICollection<T> RemoveRange(int index, int count)

Parameters

index int

The zero-based index of the first element to remove.

count int

The number of elements to remove.

Returns

ICollection<T>

A collection containing the removed elements.

Exceptions

ArgumentOutOfRangeException

Thrown when the index or count is out of range.