SortedDictionary<TKey,TValue>.ValueCollection Konstruktor
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie SortedDictionary<TKey,TValue>.ValueCollection 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ą odzwierciedlone w nowym SortedDictionary<TKey,TValue>.ValueCollectionobiekcie .
Wyjątki
Parametr dictionary ma wartość 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 pliku będą nadal odzwierciedlane w pliku SortedDictionary<TKey,TValue>.ValueCollection.
Ten konstruktor jest operacją O(1).