EventDescriptorCollection.Insert(Int32, EventDescriptor) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在 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属性值: Synchronization 这 HostProtectionAttribute 不会影响桌面应用程序(通常通过双击图标、键入命令或在浏览器中输入 URL 来启动)。 有关详细信息,请参阅 HostProtectionAttribute 类或 SQL Server 编程和主机保护属性。