Share via


KeyedByTypeCollection<TItem> 建構函式

定義

初始化 KeyedByTypeCollection<TItem> 類別的新執行個體。

多載

KeyedByTypeCollection<TItem>()

初始化 KeyedByTypeCollection<TItem> 類別的新執行個體。

KeyedByTypeCollection<TItem>(IEnumerable<TItem>)

為物件的特定列舉型別初始化 KeyedByTypeCollection<TItem> 類別的新執行個體。

KeyedByTypeCollection<TItem>()

來源:
KeyedByTypeCollection.cs
來源:
KeyedByTypeCollection.cs
來源:
KeyedByTypeCollection.cs

初始化 KeyedByTypeCollection<TItem> 類別的新執行個體。

public:
 KeyedByTypeCollection();
public KeyedByTypeCollection ();
Public Sub New ()

適用於

KeyedByTypeCollection<TItem>(IEnumerable<TItem>)

來源:
KeyedByTypeCollection.cs
來源:
KeyedByTypeCollection.cs
來源:
KeyedByTypeCollection.cs

為物件的特定列舉型別初始化 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 可以用來初始化集合。

例外狀況

itemsnull

適用於