ListSortDescriptionCollection.IList.Clear Método

Definição

Remove todos os itens da coleção.Removes all items from the collection.

 virtual void System.Collections.IList.Clear() = System::Collections::IList::Clear;
void IList.Clear ();
abstract member System.Collections.IList.Clear : unit -> unit
override this.System.Collections.IList.Clear : unit -> unit
Sub Clear () Implements IList.Clear

Implementações

Exceções

Em todos os casos.In all cases.

Comentários

Como a ListSortDescriptionCollection classe implementa a System.Collections.IList interface, ela deve ter um IList.Clear método.Because the ListSortDescriptionCollection class implements the System.Collections.IList interface, it must have a IList.Clear method. No entanto, como a ListSortDescriptionCollection classe representa uma coleção somente leitura, a limpeza de itens da coleção é uma operação inválida.However, because the ListSortDescriptionCollection class represents a read-only collection, clearing items from the collection is an invalid operation.

Aplica-se a