ConcurrentBag<T> ConcurrentBag<T> ConcurrentBag<T> ConcurrentBag<T> Constructors

정의

오버로드

ConcurrentBag<T>() ConcurrentBag<T>() ConcurrentBag<T>()

ConcurrentBag<T> 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the ConcurrentBag<T> class.

ConcurrentBag<T>(IEnumerable<T>) ConcurrentBag<T>(IEnumerable<T>) ConcurrentBag<T>(IEnumerable<T>) ConcurrentBag<T>(IEnumerable<T>)

지정된 컬렉션에서 복사한 요소가 포함된 ConcurrentBag<T> 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the ConcurrentBag<T> class that contains elements copied from the specified collection.

ConcurrentBag<T>() ConcurrentBag<T>() ConcurrentBag<T>()

ConcurrentBag<T> 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the ConcurrentBag<T> class.

public:
 ConcurrentBag();
public ConcurrentBag ();
Public Sub New ()
추가 정보

ConcurrentBag<T>(IEnumerable<T>) ConcurrentBag<T>(IEnumerable<T>) ConcurrentBag<T>(IEnumerable<T>) ConcurrentBag<T>(IEnumerable<T>)

지정된 컬렉션에서 복사한 요소가 포함된 ConcurrentBag<T> 클래스의 새 인스턴스를 초기화합니다.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))

매개 변수

collection
IEnumerable<T> IEnumerable<T> IEnumerable<T> IEnumerable<T>

해당 요소가 새 ConcurrentBag<T>에 복사되는 컬렉션입니다.The collection whose elements are copied to the new ConcurrentBag<T>.

예외

collection가 null 참조(Visual Basic의 경우 Nothing)인 경우collection is a null reference (Nothing in Visual Basic).

추가 정보

적용 대상