ConcurrentBag<T>.Add(T) ConcurrentBag<T>.Add(T) ConcurrentBag<T>.Add(T) ConcurrentBag<T>.Add(T) Method

定义

将对象添加到 ConcurrentBag<T> 中。Adds an object to the ConcurrentBag<T>.

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

参数

item
T T T T

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

适用于

另请参阅