ConcurrentStack<T> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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 为 null。