次の方法で共有


EventDescriptorCollection.Add(EventDescriptor) メソッド

定義

コレクションの末尾に EventDescriptor を追加します。

public:
 int Add(System::ComponentModel::EventDescriptor ^ value);
public int Add(System.ComponentModel.EventDescriptor? value);
public int Add(System.ComponentModel.EventDescriptor value);
member this.Add : System.ComponentModel.EventDescriptor -> int
Public Function Add (value As EventDescriptor) As Integer

パラメーター

value
EventDescriptor

コレクションに追加する EventDescriptor

戻り値

コレクション内の EventDescriptor の位置。

例外

コレクションは読み取り専用です。

注釈

このクラスに適用される HostProtectionAttribute 属性には、次の Resources プロパティ値があります: SynchronizationHostProtectionAttributeはデスクトップ アプリケーションには影響しません (通常、アイコンをダブルクリックするか、コマンドを入力するか、ブラウザーで URL を入力します)。 詳細については、 HostProtectionAttribute クラスまたは SQL Server プログラミング属性とホスト保護属性に関するページを参照してください。

適用対象