SortedDictionary<TKey,TValue>.KeyCollection Konstruktor
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Initialisiert eine neue Instanz der SortedDictionary<TKey,TValue>.KeyCollection-Klasse, die die Schlüssel im angegebenen SortedDictionary<TKey,TValue> angibt.
public:
KeyCollection(System::Collections::Generic::SortedDictionary<TKey, TValue> ^ dictionary);
public KeyCollection (System.Collections.Generic.SortedDictionary<TKey,TValue> dictionary);
new System.Collections.Generic.SortedDictionary<'Key, 'Value>.KeyCollection : System.Collections.Generic.SortedDictionary<'Key, 'Value> -> System.Collections.Generic.SortedDictionary<'Key, 'Value>.KeyCollection
Public Sub New (dictionary As SortedDictionary(Of TKey, TValue))
Parameter
- dictionary
- SortedDictionary<TKey,TValue>
Das SortedDictionary<TKey,TValue>, dessen Schlüssel in der neuen SortedDictionary<TKey,TValue>.KeyCollection angegeben werden.
Ausnahmen
dictionary ist null.
Hinweise
Dies SortedDictionary<TKey,TValue>.KeyCollection ist keine statische Kopie. Stattdessen bezieht sich der SortedDictionary<TKey,TValue>.KeyCollection Verweis auf die Tasten im Original SortedDictionary<TKey,TValue>. Daher werden die Änderungen an der SortedDictionary<TKey,TValue> Weiterdarstellung in der SortedDictionary<TKey,TValue>.KeyCollection.
Dieser Konstruktor ist ein O(1)-Vorgang.