SortedDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Clear Método
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.
Remove todos os itens do ICollection<T>. Esta implementação lança sempre um NotSupportedException.
virtual void System.Collections.Generic.ICollection<TValue>.Clear() = System::Collections::Generic::ICollection<TValue>::Clear;
void ICollection<TValue>.Clear();
abstract member System.Collections.Generic.ICollection<TValue>.Clear : unit -> unit
override this.System.Collections.Generic.ICollection<TValue>.Clear : unit -> unit
Sub Clear () Implements ICollection(Of TValue).Clear
Implementações
Exceções
Sempre lançado; A coleção é só de leitura.
Observações
A Count propriedade é definida para 0, e também são libertadas referências a outros objetos provenientes de elementos da coleção.