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 in der angegebenen .SortedDictionary<TKey,TValue>
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>
Die SortedDictionary<TKey,TValue> Werte, deren Werte im neuen SortedDictionary<TKey,TValue>.ValueCollectionwiderspiegelt werden.
Ausnahmen
dictionary ist null.
Hinweise
Dies ist keine statische Kopie. Stattdessen SortedDictionary<TKey,TValue>.ValueCollection bezieht sich der SortedDictionary<TKey,TValue>.ValueCollection Verweis auf die Werte im Original SortedDictionary<TKey,TValue>. Daher werden die Änderungen an den SortedDictionary<TKey,TValue> weiterhin in den SortedDictionary<TKey,TValue>.ValueCollection.
Dieser Konstruktor ist ein O(1)-Vorgang.