Dictionary<TKey,TValue>.ValueCollection Construtor
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Inicializa uma nova instância da Dictionary<TKey,TValue>.ValueCollection classe que reflete os valores no especificado Dictionary<TKey,TValue>.
public:
ValueCollection(System::Collections::Generic::Dictionary<TKey, TValue> ^ dictionary);
public ValueCollection(System.Collections.Generic.Dictionary<TKey,TValue> dictionary);
new System.Collections.Generic.Dictionary<'Key, 'Value>.ValueCollection : System.Collections.Generic.Dictionary<'Key, 'Value> -> System.Collections.Generic.Dictionary<'Key, 'Value>.ValueCollection
Public Sub New (dictionary As Dictionary(Of TKey, TValue))
Parâmetros
- dictionary
- Dictionary<TKey,TValue>
Os Dictionary<TKey,TValue> cujos valores estão refletidos no novo Dictionary<TKey,TValue>.ValueCollection.
Exceções
dictionary é null.
Observações
O Dictionary<TKey,TValue>.ValueCollection não é uma cópia estática; em vez disso, o Dictionary<TKey,TValue>.ValueCollection refere-se aos valores no original Dictionary<TKey,TValue>. Portanto, as alterações ao Dictionary<TKey,TValue> continuam a ser refletidas no Dictionary<TKey,TValue>.ValueCollection.
Este construtor é uma operação O(1).