ConcurrentQueue<T>.Enqueue(T) 方法

定义

将对象添加到 ConcurrentQueue<T> 的结尾处。Adds an object to the end of the ConcurrentQueue<T>.

public:
 void Enqueue(T item);
public void Enqueue (T item);
member this.Enqueue : 'T -> unit
Public Sub Enqueue (item As T)

参数

item
T

要添加到 ConcurrentQueue<T> 的结尾处的对象。The object to add to the end of the ConcurrentQueue<T>. 该值对于引用类型可以是空引用(在 Visual Basic 中为 Nothing)。The value can be a null reference (Nothing in Visual Basic) for reference types.

适用于

另请参阅