ConcurrentQueue<T> ConcurrentQueue<T> ConcurrentQueue<T> ConcurrentQueue<T> Constructors

定義

多載

ConcurrentQueue<T>() ConcurrentQueue<T>() ConcurrentQueue<T>()

初始化 ConcurrentQueue<T> 類別的新執行個體。Initializes a new instance of the ConcurrentQueue<T> class.

ConcurrentQueue<T>(IEnumerable<T>) ConcurrentQueue<T>(IEnumerable<T>) ConcurrentQueue<T>(IEnumerable<T>) ConcurrentQueue<T>(IEnumerable<T>)

初始化 ConcurrentQueue<T> 類別的新執行個體,其中包含從指定之集合所複製的項目。Initializes a new instance of the ConcurrentQueue<T> class that contains elements copied from the specified collection

ConcurrentQueue<T>() ConcurrentQueue<T>() ConcurrentQueue<T>()

初始化 ConcurrentQueue<T> 類別的新執行個體。Initializes a new instance of the ConcurrentQueue<T> class.

public:
 ConcurrentQueue();
public ConcurrentQueue ();
Public Sub New ()
另請參閱

ConcurrentQueue<T>(IEnumerable<T>) ConcurrentQueue<T>(IEnumerable<T>) ConcurrentQueue<T>(IEnumerable<T>) ConcurrentQueue<T>(IEnumerable<T>)

初始化 ConcurrentQueue<T> 類別的新執行個體,其中包含從指定之集合所複製的項目。Initializes a new instance of the ConcurrentQueue<T> class that contains elements copied from the specified collection

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

參數

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

集合,要將其項目複製至新的 ConcurrentQueue<T>The collection whose elements are copied to the new ConcurrentQueue<T>.

例外狀況

collection 引數為 null。The collection argument is null.

另請參閱

適用於