DataGridViewSelectedColumnCollection.IList.Clear 方法

定义

实现 Clear() 方法。Implements the Clear() method. 总是引发 NotSupportedExceptionAlways throws NotSupportedException.

 virtual void System.Collections.IList.Clear() = System::Collections::IList::Clear;
void IList.Clear ();
Sub Clear () Implements IList.Clear

实现

异常

始终引发。Always thrown.

注解

不能直接更改DataGridViewSelectedColumnCollection类。You cannot change the DataGridViewSelectedColumnCollection class directly. 若要清除DataGridViewSelectedColumnCollection, 请DataGridView.ClearSelection使用方法。To clear the DataGridViewSelectedColumnCollection, use the DataGridView.ClearSelection method.

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 DataGridViewSelectedColumnCollection 实例被强制转换为 IList 接口时使用。It can be used only when the DataGridViewSelectedColumnCollection instance is cast to an IList interface.

适用于

另请参阅