CustomTypeDescriptor.GetEvents Metoda

Definicja

Zwraca kolekcję deskryptorów zdarzeń dla obiektu reprezentowanego przez deskryptor tego typu.

Przeciążenia

GetEvents()

Zwraca kolekcję deskryptorów zdarzeń dla obiektu reprezentowanego przez deskryptor tego typu.

GetEvents(Attribute[])

Zwraca filtrowaną kolekcję deskryptorów zdarzeń dla obiektu reprezentowanego przez deskryptor tego typu.

Uwagi

Metoda GetEvents zwraca kolekcję deskryptorów zdarzeń dla obiektu, który reprezentuje deskryptor tego typu. Opcjonalna tablica atrybutów może zostać udostępniona w celu filtrowania zwracanej kolekcji. Jeśli nie podano elementu nadrzędnego, metoda zwróci Emptywartość .

GetEvents()

Źródło:
CustomTypeDescriptor.cs
Źródło:
CustomTypeDescriptor.cs
Źródło:
CustomTypeDescriptor.cs

Zwraca kolekcję deskryptorów zdarzeń dla obiektu reprezentowanego przez deskryptor tego typu.

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

Zwraca

Deskryptory EventDescriptorCollection zdarzeń dla obiektu reprezentowanego przez deskryptor tego typu. Wartość domyślna to Empty.

Implementuje

Uwagi

Jeśli deskryptor niestandardowego typu nadrzędnego został przekazany do CustomTypeDescriptor konstruktora, GetEvents metoda wywoła odpowiednią metodę elementu nadrzędnego.

Zobacz też

Dotyczy

GetEvents(Attribute[])

Źródło:
CustomTypeDescriptor.cs
Źródło:
CustomTypeDescriptor.cs
Źródło:
CustomTypeDescriptor.cs

Zwraca filtrowaną kolekcję deskryptorów zdarzeń dla obiektu reprezentowanego przez deskryptor tego typu.

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

Parametry

attributes
Attribute[]

Tablica atrybutów do użycia jako filtr. Może to być null.

Zwraca

Opisy EventDescriptorCollection zdarzeń dla obiektu reprezentowanego przez deskryptor tego typu. Wartość domyślna to Empty.

Implementuje

Uwagi

Możesz użyć parametru attributes do filtrowania zwracanej kolekcji.

Jeśli deskryptor niestandardowego typu nadrzędnego został przekazany do CustomTypeDescriptor konstruktora, GetEvents metoda wywoła odpowiednią metodę elementu nadrzędnego.

Zobacz też

Dotyczy