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 程式設計與主機保護屬性

適用於