CustomTypeDescriptor.GetEvents 메서드

정의

이 형식 설명자가 나타내는 개체에 대한 이벤트 설명자의 컬렉션을 반환합니다.

오버로드

GetEvents()

이 형식 설명자가 나타내는 개체에 대한 이벤트 설명자의 컬렉션을 반환합니다.

GetEvents(Attribute[])

이 형식 설명자가 나타내는 개체에 대한 이벤트 설명자의 필터링된 컬렉션을 반환합니다.

설명

메서드는 GetEvents 이 형식 설명자가 나타내는 개체에 대한 이벤트 설명자 컬렉션을 반환합니다. 반환되는 컬렉션을 필터링하기 위해 선택적 특성 배열을 제공할 수 있습니다. 부모가 제공되지 않으면 메서드는 를 반환 Empty합니다.

GetEvents()

Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs

이 형식 설명자가 나타내는 개체에 대한 이벤트 설명자의 컬렉션을 반환합니다.

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

반환

이 형식 설명자가 나타내는 개체에 대한 이벤트 설명자를 포함하는 EventDescriptorCollection입니다. 기본값은 Empty입니다.

구현

설명

부모 사용자 지정 형식 설명자가 생성자에 전달된 CustomTypeDescriptor 경우 메서드는 GetEvents 부모의 해당 메서드를 호출합니다.

추가 정보

적용 대상

GetEvents(Attribute[])

Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs

이 형식 설명자가 나타내는 개체에 대한 이벤트 설명자의 필터링된 컬렉션을 반환합니다.

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ GetEvents(cli::array <Attribute ^> ^ attributes);
public virtual System.ComponentModel.EventDescriptorCollection GetEvents (Attribute[] attributes);
public virtual System.ComponentModel.EventDescriptorCollection GetEvents (Attribute[]? attributes);
abstract member GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
override this.GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function GetEvents (attributes As Attribute()) As EventDescriptorCollection

매개 변수

attributes
Attribute[]

필터로 사용할 특성의 배열입니다. 이 매개 변수는 null이 될 수 있습니다.

반환

이 형식 설명자가 나타내는 개체에 대한 이벤트 설명을 포함하는 EventDescriptorCollection입니다. 기본값은 Empty입니다.

구현

설명

매개 변수를 attributes 사용하여 반환되는 컬렉션을 필터링할 수 있습니다.

부모 사용자 지정 형식 설명자가 생성자에 전달된 CustomTypeDescriptor 경우 메서드는 GetEvents 부모의 해당 메서드를 호출합니다.

추가 정보

적용 대상