ListSortDescriptionCollection.IList.Clear Metod

Definition

Tar bort alla objekt från samlingen.

 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

Implementeringar

Undantag

I samtliga fall.

Kommentarer

ListSortDescriptionCollection Eftersom klassen implementerar System.Collections.IList gränssnittet måste den ha en IList.Clear metod. Men eftersom ListSortDescriptionCollection klassen representerar en skrivskyddad samling är det en ogiltig åtgärd att rensa objekt från samlingen.

Gäller för