DataGridViewSelectedRowCollection.IList.Clear Metoda

Definice

Implementuje metodu Clear() . Vždy vyvolá NotSupportedException.

 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

Implementuje

Výjimky

Vždy vyvolána.

Poznámky

Třídu nelze změnit DataGridViewSelectedRowCollection přímo. Chcete-li vymazat DataGridViewSelectedRowCollection, použijte metodu DataGridView.ClearSelection .

Tento člen je explicitní implementace členu rozhraní. Lze ho DataGridViewSelectedRowCollection použít pouze v případě, že je instance přetypována do IList rozhraní.

Platí pro

Viz také