SortedDictionary<TKey,TValue>.ValueCollection Constructor

Definitie

Initialiseert een nieuw exemplaar van de SortedDictionary<TKey,TValue>.ValueCollection klasse die de waarden in de opgegeven SortedDictionary<TKey,TValue>klasse weerspiegelt.

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

Parameters

dictionary
SortedDictionary<TKey,TValue>

De SortedDictionary<TKey,TValue> waarden waarvan de waarden worden weerspiegeld in de nieuwe SortedDictionary<TKey,TValue>.ValueCollection.

Uitzonderingen

dictionary is null.

Opmerkingen

Het SortedDictionary<TKey,TValue>.ValueCollection is geen statische kopie. In plaats daarvan verwijst deze SortedDictionary<TKey,TValue>.ValueCollection terug naar de waarden in het origineel SortedDictionary<TKey,TValue>. Daarom blijven wijzigingen in de wijzigingen in de SortedDictionary<TKey,TValue>SortedDictionary<TKey,TValue>.ValueCollection.

Deze constructor is een O(1)-bewerking.

Van toepassing op