ConcurrentStack<T> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| ConcurrentStack<T>() |
初始化 ConcurrentStack<T> 類別的新執行個體。 |
| ConcurrentStack<T>(IEnumerable<T>) |
初始化一個包含從指定集合複製元素的類別新實例 ConcurrentStack<T> 。 |
ConcurrentStack<T>()
初始化 ConcurrentStack<T> 類別的新執行個體。
public:
ConcurrentStack();
public ConcurrentStack();
Public Sub New ()
另請參閱
適用於
ConcurrentStack<T>(IEnumerable<T>)
初始化一個包含從指定集合複製元素的類別新實例 ConcurrentStack<T> 。
public:
ConcurrentStack(System::Collections::Generic::IEnumerable<T> ^ collection);
public ConcurrentStack(System.Collections.Generic.IEnumerable<T> collection);
new System.Collections.Concurrent.ConcurrentStack<'T> : seq<'T> -> System.Collections.Concurrent.ConcurrentStack<'T>
Public Sub New (collection As IEnumerable(Of T))
參數
- collection
- IEnumerable<T>
其元素被複製到新的 ConcurrentStack<T>集合。
例外狀況
這個 collection 論證是空的。