SortedDictionary<TKey,TValue>.ValueCollection Konstruktor

Definition

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

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.

Gilt für: