DataGridViewSelectedColumnCollection.IList.Add(Object) 方法

定义

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

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
Function Add (value As Object) As Integer Implements IList.Add

参数

value
Object

要添加到 DataGridViewSelectedColumnCollection 的项。The item to be added to the DataGridViewSelectedColumnCollection.

返回

不适用。Not applicable. 将始终引发异常。Always throws an exception.

实现

异常

始终引发。Always thrown.

注解

不能直接更改DataGridViewSelectedColumnCollection类。You cannot change the DataGridViewSelectedColumnCollection class directly. 若要向添加列DataGridViewSelectedColumnCollection, 请DataGridViewBand.Selected使用属性。To add a column to the DataGridViewSelectedColumnCollection, use the DataGridViewBand.Selected property.

此成员是显式接口成员的实现。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.

适用于

另请参阅