語言

KeyedByTypeCollection<TItem> 建構函式

定義

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

多載

名稱 Description
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

例外狀況

items 是 null。

適用於