KeyedByTypeCollection<TItem> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 KeyedByTypeCollection<TItem> 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| KeyedByTypeCollection<TItem>() |
初始化 KeyedByTypeCollection<TItem> 類別的新執行個體。 |
| KeyedByTypeCollection<TItem>(IEnumerable<TItem>) |
初始化該類別的新實例 KeyedByTypeCollection<TItem> ,用於指定的物件列舉。 |
KeyedByTypeCollection<TItem>()
初始化 KeyedByTypeCollection<TItem> 類別的新執行個體。
public:
KeyedByTypeCollection();
public KeyedByTypeCollection();
Public Sub New ()
適用於
KeyedByTypeCollection<TItem>(IEnumerable<TItem>)
初始化該類別的新實例 KeyedByTypeCollection<TItem> ,用於指定的物件列舉。
public:
KeyedByTypeCollection(System::Collections::Generic::IEnumerable<TItem> ^ items);
public KeyedByTypeCollection(System.Collections.Generic.IEnumerable<TItem> items);
new System.Collections.Generic.KeyedByTypeCollection<'Item> : seq<'Item> -> System.Collections.Generic.KeyedByTypeCollection<'Item>
Public Sub New (items As IEnumerable(Of TItem))
參數
- items
- IEnumerable<TItem>
用於初始化集合的通用型IEnumerable<T>態。Object
例外狀況
items 是 null。