SortedDictionary<TKey,TValue>.ValueCollection Konstruktor

Definicja

Inicjuje SortedDictionary<TKey,TValue>.ValueCollection nowe wystąpienie klasy, które odzwierciedla wartości w określonym SortedDictionary<TKey,TValue>obiekcie .

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))

Parametry

dictionary
SortedDictionary<TKey,TValue>

Wartości SortedDictionary<TKey,TValue> , których wartości są odzwierciedlane w nowym SortedDictionary<TKey,TValue>.ValueCollectionobiekcie .

Wyjątki

dictionary to null.

Uwagi

Element SortedDictionary<TKey,TValue>.ValueCollection nie jest kopią statyczną. Zamiast tego SortedDictionary<TKey,TValue>.ValueCollection element odwołuje się do wartości w oryginalnym SortedDictionary<TKey,TValue>obiekcie . W związku z SortedDictionary<TKey,TValue> tym zmiany w obiekcie nadal będą odzwierciedlane w pliku SortedDictionary<TKey,TValue>.ValueCollection.

Ten konstruktor jest operacją O(1).

Dotyczy