ImmutableQueue<T>.Dequeue 方法

定义

重载

Dequeue()

移除位于不可变队列开始处的元素,并返回新队列。Removes the element at the beginning of the immutable queue, and returns the new queue.

Dequeue(T)

移除位于不可变队列开始处的项,并返回新队列。Removes the item at the beginning of the immutable queue, and returns the new queue.

Dequeue()

移除位于不可变队列开始处的元素,并返回新队列。Removes the element at the beginning of the immutable queue, and returns the new queue.

public:
 System::Collections::Immutable::ImmutableQueue<T> ^ Dequeue();
public System.Collections.Immutable.ImmutableQueue<T> Dequeue ();
member this.Dequeue : unit -> System.Collections.Immutable.ImmutableQueue<'T>
Public Function Dequeue () As ImmutableQueue(Of T)

返回

ImmutableQueue<T>

新的不可变队列;永不为 nullThe new immutable queue; never null.

例外

队列为空。The queue is empty.

适用于

Dequeue(T)

移除位于不可变队列开始处的项,并返回新队列。Removes the item at the beginning of the immutable queue, and returns the new queue.

public:
 System::Collections::Immutable::ImmutableQueue<T> ^ Dequeue([Runtime::InteropServices::Out] T % value);
public System.Collections.Immutable.ImmutableQueue<T> Dequeue (out T value);
member this.Dequeue : 'T -> System.Collections.Immutable.ImmutableQueue<'T>
Public Function Dequeue (ByRef value As T) As ImmutableQueue(Of T)

参数

value
T

此方法返回时,将包含位于队列开始处的元素。When this method returns, contains the element from the beginning of the queue.

返回

ImmutableQueue<T>

新的不可变队列,其开头元素已被移除。The new immutable queue with the beginning element removed.

例外

队列为空。The queue is empty.

适用于