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>. 值可以是參考型別的 null 參考 (在 Visual Basic 中為 Nothing)。The value can be a null reference (Nothing in Visual Basic) for reference types.

適用於

另請參閱