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 classe SortedDictionary<TKey,TValue>.ValueCollection qui reflète les valeurs dans le SortedDictionary<TKey,TValue> spécifié.
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>
SortedDictionary<TKey,TValue> dont les valeurs sont reflétées dans le nouveau SortedDictionary<TKey,TValue>.ValueCollection.
Exceptions
dictionary
a la valeur null
.
Remarques
n’est SortedDictionary<TKey,TValue>.ValueCollection pas une copie statique ; au lieu de cela, le SortedDictionary<TKey,TValue>.ValueCollection fait référence aux valeurs dans l’original SortedDictionary<TKey,TValue>. Par conséquent, les modifications apportées au SortedDictionary<TKey,TValue> continuent d’être reflétées dans .SortedDictionary<TKey,TValue>.ValueCollection
Ce constructeur est une opération O(1).
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Prochainement : Tout au long de l'année 2024, nous supprimerons progressivement les GitHub Issues en tant que mécanisme de retour d'information pour le contenu et nous les remplacerons par un nouveau système de retour d'information. Pour plus d’informations, voir:Soumettre et afficher des commentaires pour