SortedDictionary<TKey,TValue>.ValueCollection Konstruktor

Definition

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

Ausnahmen

dictionary ist null

Hinweise

Der SortedDictionary<TKey,TValue>.ValueCollection ist keine statische Kopie, SortedDictionary<TKey,TValue>.ValueCollection sondern verweist auf die Werte im ursprünglichen SortedDictionary<TKey,TValue>. Daher werden Änderungen an dem SortedDictionary<TKey,TValue> weiterhin in der widerspiegelt SortedDictionary<TKey,TValue>.ValueCollection.

Dieser Konstruktor ist ein O(1)-Vorgang.

Gilt für: