KeyedByTypeCollection<TItem> Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en ny instans av KeyedByTypeCollection<TItem> klassen.
Överlagringar
| Name | Description |
|---|---|
| KeyedByTypeCollection<TItem>() |
Initierar en ny instans av KeyedByTypeCollection<TItem> klassen. |
| KeyedByTypeCollection<TItem>(IEnumerable<TItem>) |
Initierar en ny instans av KeyedByTypeCollection<TItem> klassen för en angiven uppräkning av objekt. |
KeyedByTypeCollection<TItem>()
Initierar en ny instans av KeyedByTypeCollection<TItem> klassen.
public:
KeyedByTypeCollection();
public KeyedByTypeCollection();
Public Sub New ()
Gäller för
KeyedByTypeCollection<TItem>(IEnumerable<TItem>)
Initierar en ny instans av KeyedByTypeCollection<TItem> klassen för en angiven uppräkning av objekt.
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))
Parametrar
- items
- IEnumerable<TItem>
Den IEnumerable<T> generiska typ Object som används för att initiera samlingen.
Undantag
items är null.