ICollection<T>.Clear Method

Definition

Remove todos os itens do ICollection<T>.Removes all items from the ICollection<T>.

public:
 void Clear();
public void Clear ();
abstract member Clear : unit -> unit
Public Sub Clear ()

Exceptions

O ICollection<T> é somente leitura.The ICollection<T> is read-only.

Remarks

Count deve ser definido como 0 e as referências a outros objetos de elementos da coleção devem ser liberadas.Count must be set to 0, and references to other objects from elements of the collection must be released.

Applies to

See also