ConcurrentBag<T> Konstruktory

Definicja

Przeciążenia

ConcurrentBag<T>()

Inicjuje nowe wystąpienie klasy ConcurrentBag<T>.

ConcurrentBag<T>(IEnumerable<T>)

Inicjuje ConcurrentBag<T> nowe wystąpienie klasy zawierające elementy skopiowane z określonej kolekcji.

ConcurrentBag<T>()

Źródło:
ConcurrentBag.cs
Źródło:
ConcurrentBag.cs
Źródło:
ConcurrentBag.cs

Inicjuje nowe wystąpienie klasy ConcurrentBag<T>.

public:
 ConcurrentBag();
public ConcurrentBag ();
Public Sub New ()

Zobacz też

Dotyczy

ConcurrentBag<T>(IEnumerable<T>)

Źródło:
ConcurrentBag.cs
Źródło:
ConcurrentBag.cs
Źródło:
ConcurrentBag.cs

Inicjuje ConcurrentBag<T> nowe wystąpienie klasy zawierające elementy skopiowane z określonej kolekcji.

public:
 ConcurrentBag(System::Collections::Generic::IEnumerable<T> ^ collection);
public ConcurrentBag (System.Collections.Generic.IEnumerable<T> collection);
new System.Collections.Concurrent.ConcurrentBag<'T> : seq<'T> -> System.Collections.Concurrent.ConcurrentBag<'T>
Public Sub New (collection As IEnumerable(Of T))

Parametry

collection
IEnumerable<T>

Kolekcja, której elementy są kopiowane do nowego ConcurrentBag<T>elementu .

Wyjątki

collection jest odwołaniem o wartości null (Nic w Visual Basic).

Zobacz też

Dotyczy