次の方法で共有


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 プログラミング属性とホスト保護属性に関するページを参照してください。

適用対象