SortedDictionary<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 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> cujos valores estão refletidos no novo SortedDictionary<TKey,TValue>.ValueCollection.
Exceções
dictionary é null.
Observações
O SortedDictionary<TKey,TValue>.ValueCollection não é uma cópia estática; em vez disso, o SortedDictionary<TKey,TValue>.ValueCollection refere-se aos valores no original SortedDictionary<TKey,TValue>. Portanto, as alterações ao SortedDictionary<TKey,TValue> continuam a ser refletidas no SortedDictionary<TKey,TValue>.ValueCollection.
Este construtor é uma operação O(1).