SortedDictionary<TKey,TValue>.ValueCollection Konstruktor
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Inicializuje novou instanci SortedDictionary<TKey,TValue>.ValueCollection třídy, která odráží hodnoty v zadané 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))
Parametry
- dictionary
- SortedDictionary<TKey,TValue>
Jejíž SortedDictionary<TKey,TValue> hodnoty se projeví v nové SortedDictionary<TKey,TValue>.ValueCollection.
Výjimky
dictionary je null.
Poznámky
Nejedná se o statickou kopii. SortedDictionary<TKey,TValue>.ValueCollection Místo SortedDictionary<TKey,TValue>.ValueCollection toho odkazuje zpět na hodnoty v původním SortedDictionary<TKey,TValue>souboru . Proto se změny nadále SortedDictionary<TKey,TValue> projeví v SortedDictionary<TKey,TValue>.ValueCollectionsouboru .
Tento konstruktor je operace O(1).