ICustomTypeDescriptor.GetEvents 메서드

정의

해당 구성 요소 인스턴스의 이벤트를 반환합니다.

오버로드

GetEvents()

해당 구성 요소 인스턴스의 이벤트를 반환합니다.

GetEvents(Attribute[])

지정된 특성 배열을 필터로 사용하여 해당 구성 요소 인스턴스의 이벤트를 반환합니다.

GetEvents()

해당 구성 요소 인스턴스의 이벤트를 반환합니다.

public:
 System::ComponentModel::EventDescriptorCollection ^ GetEvents();
public System.ComponentModel.EventDescriptorCollection GetEvents ();
abstract member GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents () As EventDescriptorCollection

반환

해당 구성 요소 인스턴스의 이벤트를 나타내는 EventDescriptorCollection입니다.

설명

이 instance 대한 이벤트는 클래스가 제공하는 이벤트 집합과 다를 수 있습니다. 예를 들어 구성 요소가 사이트 기반인 경우 사이트에서 추가 이벤트를 추가하거나 제거할 수 있습니다.

속성이 지정되지 않은 경우 구현자는 를 반환 EventDescriptorCollection.Empty 할 수 있습니다. 이 메서드는 를 반환 null하지 않아야 합니다.

추가 정보

적용 대상

GetEvents(Attribute[])

지정된 특성 배열을 필터로 사용하여 해당 구성 요소 인스턴스의 이벤트를 반환합니다.

public:
 System::ComponentModel::EventDescriptorCollection ^ GetEvents(cli::array <Attribute ^> ^ attributes);
public System.ComponentModel.EventDescriptorCollection GetEvents (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 형식의 배열입니다.

반환

해당 구성 요소 인스턴스의 필터링된 이벤트를 나타내는 EventDescriptorCollection입니다.

설명

이 instance 대한 이벤트는 클래스가 제공하는 이벤트 집합과 다를 수 있습니다. 예를 들어 구성 요소가 사이트 기반인 경우 사이트에서 추가 이벤트를 추가하거나 제거할 수 있습니다.

Attribute 가 배열에 attributes 지정되어 있고 이벤트에 해당 특성에 대한 클래스의 instance 없는 경우 반환된 배열은 가 기본 이벤트인 경우 Attribute 이벤트를 포함합니다.

추가 정보

적용 대상