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.

另请参阅

适用于