ICustomTypeDescriptor.GetEvents メソッド
定義
コンポーネントのこのインスタンスのイベントを返します。Returns the events for this instance of a component.
オーバーロード
GetEvents() |
コンポーネントのこのインスタンスのイベントを返します。Returns the events for this instance of a component. |
GetEvents(Attribute[]) |
フィルターとして指定された属性配列を使用して、コンポーネントのこのインスタンスのイベントを返します。Returns the events for this instance of a component using the specified attribute array as a filter. |
GetEvents()
コンポーネントのこのインスタンスのイベントを返します。Returns the events for this instance of a component.
public:
System::ComponentModel::EventDescriptorCollection ^ GetEvents();
public System.ComponentModel.EventDescriptorCollection GetEvents ();
abstract member GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents () As EventDescriptorCollection
戻り値
このコンポーネント インスタンスのイベントを表す EventDescriptorCollection。An EventDescriptorCollection that represents the events for this component instance.
注釈
このインスタンスのイベントは、クラスが提供するイベントのセットとは異なる場合があります。The events for this instance can differ from the set of events that the class provides. たとえば、コンポーネントがサイトベースの場合、サイトで追加または追加のイベントを削除できます。For example, if the component is site-based, the site can add or remove additional events.
プロパティが指定されていない場合、実装はを返すことができ EventDescriptorCollection.Empty ます。Implementors can return EventDescriptorCollection.Empty if no properties are specified. このメソッドはを返すことはできません null
。This method should never return null
.
こちらもご覧ください
適用対象
GetEvents(Attribute[])
フィルターとして指定された属性配列を使用して、コンポーネントのこのインスタンスのイベントを返します。Returns the events for this instance of a component using the specified attribute array as a filter.
public:
System::ComponentModel::EventDescriptorCollection ^ GetEvents(cli::array <Attribute ^> ^ attributes);
public System.ComponentModel.EventDescriptorCollection GetEvents (Attribute[] attributes);
abstract member GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents (attributes As Attribute()) As EventDescriptorCollection
パラメーター
- attributes
- Attribute[]
フィルターとして使用される Attribute 型の配列。An array of type Attribute that is used as a filter.
戻り値
このコンポーネント インスタンスのフィルター処理したイベントを表す EventDescriptorCollection。An EventDescriptorCollection that represents the filtered events for this component instance.
注釈
このインスタンスのイベントは、クラスが提供するイベントのセットとは異なる場合があります。The events for this instance can differ from the set of events that the class provides. たとえば、コンポーネントがサイトベースの場合、サイトで追加または追加のイベントを削除できます。For example, if the component is site-based, the site can add or remove additional events.
Attributeが配列に指定され attributes
ていて、イベントにその属性のクラスのインスタンスがない場合、が既定のイベントである場合、返される配列にはイベントが含まれ Attribute ます。If an Attribute is specified in the attributes
array and the event does not have an instance of the class for that attribute, the returned array includes the event if the Attribute is the default event.
こちらもご覧ください
- Attribute
- DefaultEventAttribute
- GetEvents
- EventDescriptorCollection
- GetProperties
- GetAttributes()
- GetDefaultEvent()