通过


EventDescriptorCollection.Insert(Int32, EventDescriptor) 方法

定义

EventDescriptor 指定的索引处插入集合。

public:
 void Insert(int index, System::ComponentModel::EventDescriptor ^ value);
public void Insert(int index, System.ComponentModel.EventDescriptor? value);
public void Insert(int index, System.ComponentModel.EventDescriptor value);
member this.Insert : int * System.ComponentModel.EventDescriptor -> unit
Public Sub Insert (index As Integer, value As EventDescriptor)

参数

index
Int32

要在其中插入 value 参数的集合中的索引。

value
EventDescriptor

要插入到集合中的一个 EventDescriptor

例外

集合为只读。

注解

注释

HostProtectionAttribute应用于此类的属性具有以下Resources属性值: SynchronizationHostProtectionAttribute 不会影响桌面应用程序(通常通过双击图标、键入命令或在浏览器中输入 URL 来启动)。 有关详细信息,请参阅 HostProtectionAttribute 类或 SQL Server 编程和主机保护属性

适用于