Uredi

Deli z drugimi prek


MatchCollection.IList.Clear Method

Definition

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

Implements

Exceptions

The collection is read-only.

Remarks

This member is an explicit interface member implementation. It can be used only when the MatchCollection instance is cast to an IList interface.

Implementations of this method can vary in how they handle the ICollection.Count and the capacity of a collection. Typically, the count is set to zero, and references to other objects from elements of the collection are also released. The capacity can be set to zero or a default value, or it can remain unchanged.

Applies to