ReadOnlyCollection<T>.ICollection<T>.Clear Método

Definição

Remove todos os itens do ICollection<T>. Esta implementação sempre gera NotSupportedException.

 virtual void System.Collections.Generic.ICollection<T>.Clear() = System::Collections::Generic::ICollection<T>::Clear;
void ICollection<T>.Clear ();
abstract member System.Collections.Generic.ICollection<T>.Clear : unit -> unit
override this.System.Collections.Generic.ICollection<T>.Clear : unit -> unit
Sub Clear () Implements ICollection(Of T).Clear

Implementações

Exceções

Sempre lançada.

Comentários

Este membro é uma implementação do membro de interface explícita. Ele só pode ser usado quando a instância de ReadOnlyCollection<T> é convertida em uma interface de ICollection<T>.

Aplica-se a