TypeDescriptor.CreateEvent メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
既存のイベント記述子と同じ新しいイベント記述子を作成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| CreateEvent(Type, EventDescriptor, Attribute[]) |
既存の EventDescriptorを渡すと、既存のイベント記述子と同じ新しいイベント記述子を作成します。 |
| CreateEvent(Type, String, Type, Attribute[]) |
型の指定したイベントから記述子情報を動的に生成することで、既存のイベント記述子と同じ新しいイベント記述子を作成します。 |
CreateEvent(Type, EventDescriptor, Attribute[])
既存の EventDescriptorを渡すと、既存のイベント記述子と同じ新しいイベント記述子を作成します。
public:
static System::ComponentModel::EventDescriptor ^ CreateEvent(Type ^ componentType, System::ComponentModel::EventDescriptor ^ oldEventDescriptor, ... cli::array <Attribute ^> ^ attributes);
public static System.ComponentModel.EventDescriptor CreateEvent(Type componentType, System.ComponentModel.EventDescriptor oldEventDescriptor, params Attribute[] attributes);
static member CreateEvent : Type * System.ComponentModel.EventDescriptor * Attribute[] -> System.ComponentModel.EventDescriptor
Public Shared Function CreateEvent (componentType As Type, oldEventDescriptor As EventDescriptor, ParamArray attributes As Attribute()) As EventDescriptor
パラメーター
- componentType
- Type
新しいイベントを作成するコンポーネントの型。
- oldEventDescriptor
- EventDescriptor
既存のイベント情報。
- attributes
- Attribute[]
新しい属性。
返品
指定したメタデータ属性を既存のメタデータ属性とマージした新しい EventDescriptor 。
こちらもご覧ください
適用対象
CreateEvent(Type, String, Type, Attribute[])
型の指定したイベントから記述子情報を動的に生成することで、既存のイベント記述子と同じ新しいイベント記述子を作成します。
public:
static System::ComponentModel::EventDescriptor ^ CreateEvent(Type ^ componentType, System::String ^ name, Type ^ type, ... cli::array <Attribute ^> ^ attributes);
public static System.ComponentModel.EventDescriptor CreateEvent(Type componentType, string name, Type type, params Attribute[] attributes);
static member CreateEvent : Type * string * Type * Attribute[] -> System.ComponentModel.EventDescriptor
Public Shared Function CreateEvent (componentType As Type, name As String, type As Type, ParamArray attributes As Attribute()) As EventDescriptor
パラメーター
- componentType
- Type
イベントが存在するコンポーネントの種類。
- name
- String
イベントの名前。
- type
- Type
イベントを処理するデリゲートの型。
- attributes
- Attribute[]
このイベントの属性。
返品
型にバインドされている EventDescriptor 。