共用方式為


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屬性值: Synchronization。 這 HostProtectionAttribute 不會影響桌面應用程式(通常透過雙擊圖示、輸入指令或在瀏覽器輸入網址來啟動)。 欲了解更多資訊,請參閱 HostProtectionAttribute 類別或 SQL Server 程式設計與主機保護屬性

適用於