SortedDictionary<TKey,TValue>.ValueCollection Construtor
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Inicializa uma nova instância da SortedDictionary<TKey,TValue>.ValueCollection classe que reflete os valores no especificado 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))
Parâmetros
- dictionary
- SortedDictionary<TKey,TValue>
Os SortedDictionary<TKey,TValue> valores cujos valores são refletidos no novo SortedDictionary<TKey,TValue>.ValueCollection.
Exceções
dictionary é null.
Comentários
Não SortedDictionary<TKey,TValue>.ValueCollection é uma cópia estática; em vez disso, ela SortedDictionary<TKey,TValue>.ValueCollection se refere aos valores no original SortedDictionary<TKey,TValue>. Portanto, as alterações na continuação SortedDictionary<TKey,TValue> a serem refletidas no SortedDictionary<TKey,TValue>.ValueCollection.
Esse construtor é uma operação O(1).