SortedDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Clear Método

Definição

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.

Aplica-se a

Ver também