SortedDictionary<TKey,TValue>.ValueCollection Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la SortedDictionary<TKey,TValue>.ValueCollection classe qui reflète les valeurs dans le fichier spécifié 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))
Paramètres
- dictionary
- SortedDictionary<TKey,TValue>
Dont SortedDictionary<TKey,TValue> les valeurs sont reflétées dans le nouveau SortedDictionary<TKey,TValue>.ValueCollection.
Exceptions
dictionary a la valeur null.
Remarques
Il SortedDictionary<TKey,TValue>.ValueCollection ne s’agit pas d’une copie statique ; à la place, le SortedDictionary<TKey,TValue>.ValueCollection fait référence aux valeurs de l’original SortedDictionary<TKey,TValue>. Par conséquent, les modifications apportées à la SortedDictionary<TKey,TValue> continue à être reflétées dans le SortedDictionary<TKey,TValue>.ValueCollection.
Ce constructeur est une opération O(1).