OrderedDictionary<TKey,TValue> Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
| Nazwa | Opis |
|---|---|
| OrderedDictionary<TKey,TValue>() |
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy, która jest pusta, ma domyślną pojemność początkową i używa domyślnego porównania równości dla typu klucza. |
| OrderedDictionary<TKey,TValue>(IDictionary<TKey,TValue>) |
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy zawierające elementy skopiowane z określonej IDictionary<TKey,TValue> klasy i używa domyślnego porównania równości dla typu klucza. |
| OrderedDictionary<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>) |
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy zawierające elementy skopiowane z określonej IEnumerable<T> klasy i używa domyślnego porównania równości dla typu klucza. |
| OrderedDictionary<TKey,TValue>(IEqualityComparer<TKey>) |
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy, która jest pusta, ma domyślną pojemność początkową i używa określonego IEqualityComparer<T>elementu . |
| OrderedDictionary<TKey,TValue>(Int32) |
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy, która jest pusta, ma określoną pojemność początkową i używa domyślnego porównania równości dla typu klucza. |
| OrderedDictionary<TKey,TValue>(IDictionary<TKey,TValue>, IEqualityComparer<TKey>) |
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy zawierające elementy skopiowane z określonego IDictionary<TKey,TValue> elementu i używa określonego IEqualityComparer<T>elementu . |
| OrderedDictionary<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>, IEqualityComparer<TKey>) |
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy zawierające elementy skopiowane z określonego IEnumerable<T> elementu i używa określonego IEqualityComparer<T>elementu . |
| OrderedDictionary<TKey,TValue>(Int32, IEqualityComparer<TKey>) |
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy, która jest pusta, ma określoną pojemność początkową i używa określonego IEqualityComparer<T>elementu . |
OrderedDictionary<TKey,TValue>()
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy, która jest pusta, ma domyślną pojemność początkową i używa domyślnego porównania równości dla typu klucza.
public:
OrderedDictionary();
public OrderedDictionary();
Public Sub New ()
Dotyczy
OrderedDictionary<TKey,TValue>(IDictionary<TKey,TValue>)
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy zawierające elementy skopiowane z określonej IDictionary<TKey,TValue> klasy i używa domyślnego porównania równości dla typu klucza.
public:
OrderedDictionary(System::Collections::Generic::IDictionary<TKey, TValue> ^ dictionary);
public OrderedDictionary(System.Collections.Generic.IDictionary<TKey,TValue> dictionary);
new System.Collections.Generic.OrderedDictionary<'Key, 'Value> : System.Collections.Generic.IDictionary<'Key, 'Value> -> System.Collections.Generic.OrderedDictionary<'Key, 'Value>
Public Sub New (dictionary As IDictionary(Of TKey, TValue))
Parametry
- dictionary
- IDictionary<TKey,TValue>
Element IDictionary<TKey,TValue> , którego elementy są kopiowane do nowego OrderedDictionary<TKey,TValue>elementu . Początkowa kolejność elementów w nowej kolekcji to kolejność, wyliczeń elementów z podanego słownika.
Wyjątki
Parametr dictionary ma wartość null.
Dotyczy
OrderedDictionary<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>)
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy zawierające elementy skopiowane z określonej IEnumerable<T> klasy i używa domyślnego porównania równości dla typu klucza.
public:
OrderedDictionary(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ collection);
public OrderedDictionary(System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> collection);
new System.Collections.Generic.OrderedDictionary<'Key, 'Value> : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> System.Collections.Generic.OrderedDictionary<'Key, 'Value>
Public Sub New (collection As IEnumerable(Of KeyValuePair(Of TKey, TValue)))
Parametry
- collection
- IEnumerable<KeyValuePair<TKey,TValue>>
Element IEnumerable<T> , którego elementy są kopiowane do nowego OrderedDictionary<TKey,TValue>elementu . Początkowa kolejność elementów w nowej kolekcji to kolejność, wyliczona z podanej kolekcji.
Wyjątki
Parametr collection ma wartość null.
Dotyczy
OrderedDictionary<TKey,TValue>(IEqualityComparer<TKey>)
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy, która jest pusta, ma domyślną pojemność początkową i używa określonego IEqualityComparer<T>elementu .
public:
OrderedDictionary(System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
public OrderedDictionary(System.Collections.Generic.IEqualityComparer<TKey>? comparer);
new System.Collections.Generic.OrderedDictionary<'Key, 'Value> : System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.OrderedDictionary<'Key, 'Value>
Public Sub New (comparer As IEqualityComparer(Of TKey))
Parametry
- comparer
- IEqualityComparer<TKey>
Implementacja IEqualityComparer<T> używana podczas porównywania kluczy lub null używania wartości domyślnej EqualityComparer<T> dla typu klucza.
Dotyczy
OrderedDictionary<TKey,TValue>(Int32)
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy, która jest pusta, ma określoną pojemność początkową i używa domyślnego porównania równości dla typu klucza.
public:
OrderedDictionary(int capacity);
public OrderedDictionary(int capacity);
new System.Collections.Generic.OrderedDictionary<'Key, 'Value> : int -> System.Collections.Generic.OrderedDictionary<'Key, 'Value>
Public Sub New (capacity As Integer)
Parametry
- capacity
- Int32
Początkowa liczba elementów, które OrderedDictionary<TKey,TValue> mogą zawierać.
Wyjątki
pojemność jest mniejsza niż 0.
Dotyczy
OrderedDictionary<TKey,TValue>(IDictionary<TKey,TValue>, IEqualityComparer<TKey>)
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy zawierające elementy skopiowane z określonego IDictionary<TKey,TValue> elementu i używa określonego IEqualityComparer<T>elementu .
public:
OrderedDictionary(System::Collections::Generic::IDictionary<TKey, TValue> ^ dictionary, System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
public OrderedDictionary(System.Collections.Generic.IDictionary<TKey,TValue> dictionary, System.Collections.Generic.IEqualityComparer<TKey>? comparer);
new System.Collections.Generic.OrderedDictionary<'Key, 'Value> : System.Collections.Generic.IDictionary<'Key, 'Value> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.OrderedDictionary<'Key, 'Value>
Public Sub New (dictionary As IDictionary(Of TKey, TValue), comparer As IEqualityComparer(Of TKey))
Parametry
- dictionary
- IDictionary<TKey,TValue>
Element IDictionary<TKey,TValue> , którego elementy są kopiowane do nowego OrderedDictionary<TKey,TValue>elementu . Początkowa kolejność elementów w nowej kolekcji to kolejność, wyliczeń elementów z podanego słownika.
- comparer
- IEqualityComparer<TKey>
Implementacja IEqualityComparer<T> używana podczas porównywania kluczy lub null używania wartości domyślnej EqualityComparer<T> dla typu klucza.
Wyjątki
Parametr dictionary ma wartość null.
Dotyczy
OrderedDictionary<TKey,TValue>(IEnumerable<KeyValuePair<TKey,TValue>>, IEqualityComparer<TKey>)
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy zawierające elementy skopiowane z określonego IEnumerable<T> elementu i używa określonego IEqualityComparer<T>elementu .
public:
OrderedDictionary(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ collection, System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
public OrderedDictionary(System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> collection, System.Collections.Generic.IEqualityComparer<TKey>? comparer);
new System.Collections.Generic.OrderedDictionary<'Key, 'Value> : seq<System.Collections.Generic.KeyValuePair<'Key, 'Value>> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.OrderedDictionary<'Key, 'Value>
Public Sub New (collection As IEnumerable(Of KeyValuePair(Of TKey, TValue)), comparer As IEqualityComparer(Of TKey))
Parametry
- collection
- IEnumerable<KeyValuePair<TKey,TValue>>
Element IEnumerable<T> , którego elementy są kopiowane do nowego OrderedDictionary<TKey,TValue>elementu . Początkowa kolejność elementów w nowej kolekcji to kolejność, wyliczona z podanej kolekcji.
- comparer
- IEqualityComparer<TKey>
Implementacja IEqualityComparer<T> używana podczas porównywania kluczy lub null używania wartości domyślnej EqualityComparer<T> dla typu klucza.
Wyjątki
Parametr collection ma wartość null.
Dotyczy
OrderedDictionary<TKey,TValue>(Int32, IEqualityComparer<TKey>)
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
- Źródło:
- OrderedDictionary.cs
Inicjuje nowe wystąpienie OrderedDictionary<TKey,TValue> klasy, która jest pusta, ma określoną pojemność początkową i używa określonego IEqualityComparer<T>elementu .
public:
OrderedDictionary(int capacity, System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
public OrderedDictionary(int capacity, System.Collections.Generic.IEqualityComparer<TKey>? comparer);
new System.Collections.Generic.OrderedDictionary<'Key, 'Value> : int * System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.OrderedDictionary<'Key, 'Value>
Public Sub New (capacity As Integer, comparer As IEqualityComparer(Of TKey))
Parametry
- capacity
- Int32
Początkowa liczba elementów, które OrderedDictionary<TKey,TValue> mogą zawierać.
- comparer
- IEqualityComparer<TKey>
Implementacja IEqualityComparer<T> używana podczas porównywania kluczy lub null używania wartości domyślnej EqualityComparer<T> dla typu klucza.
Wyjątki
pojemność jest mniejsza niż 0.