SortedDictionary<TKey,TValue>.ValueCollection 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>.ValueCollection-Klasse, die die Werte im angegebenen SortedDictionary<TKey,TValue> angibt.
public:
ValueCollection(System::Collections::Generic::SortedDictionary<TKey, TValue> ^ dictionary);
public ValueCollection (System.Collections.Generic.SortedDictionary<TKey,TValue> dictionary);
new System.Collections.Generic.SortedDictionary<'Key, 'Value>.ValueCollection : System.Collections.Generic.SortedDictionary<'Key, 'Value> -> System.Collections.Generic.SortedDictionary<'Key, 'Value>.ValueCollection
Public Sub New (dictionary As SortedDictionary(Of TKey, TValue))
Parameter
- dictionary
- SortedDictionary<TKey,TValue>
Das SortedDictionary<TKey,TValue>, dessen Werte in der neuen SortedDictionary<TKey,TValue>.ValueCollection angegeben werden.
Ausnahmen
dictionary ist null.
Hinweise
Dies SortedDictionary<TKey,TValue>.ValueCollection ist keine statische Kopie, sondern verweist SortedDictionary<TKey,TValue>.ValueCollection auf die Werte im Original SortedDictionary<TKey,TValue>. Daher werden die Änderungen an der SortedDictionary<TKey,TValue> Weiterdarstellung in der SortedDictionary<TKey,TValue>.ValueCollection.
Dieser Konstruktor ist ein O(1)-Vorgang.