ConcurrentBag<T> Konstruktoren
Definition
Überlädt
ConcurrentBag<T>() |
Initialisiert eine neue Instanz der ConcurrentBag<T>-Klasse.Initializes a new instance of the ConcurrentBag<T> class. |
ConcurrentBag<T>(IEnumerable<T>) |
Initialisiert eine neue Instanz der ConcurrentBag<T>-Klasse, die aus der angegebenen Auflistung kopierte Elemente enthält.Initializes a new instance of the ConcurrentBag<T> class that contains elements copied from the specified collection. |
ConcurrentBag<T>()
Initialisiert eine neue Instanz der ConcurrentBag<T>-Klasse.Initializes a new instance of the ConcurrentBag<T> class.
public:
ConcurrentBag();
public ConcurrentBag ();
Public Sub New ()
Siehe auch
Gilt für:
ConcurrentBag<T>(IEnumerable<T>)
Initialisiert eine neue Instanz der ConcurrentBag<T>-Klasse, die aus der angegebenen Auflistung kopierte Elemente enthält.Initializes a new instance of the ConcurrentBag<T> class that contains elements copied from the specified collection.
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))
Parameter
- collection
- IEnumerable<T>
Die Auflistung, deren Elemente in die neue ConcurrentBag<T> kopiert werden.The collection whose elements are copied to the new ConcurrentBag<T>.
Ausnahmen
collection
ist ein NULL-Verweis (Nothing in Visual Basic).collection
is a null reference (Nothing in Visual Basic).