CustomTypeDescriptor.GetEvents Metoda

Definice

Vrátí kolekci popisovačů událostí pro objekt reprezentovaný tímto popisovačem typu.

Přetížení

Name Description
GetEvents()

Vrátí kolekci popisovačů událostí pro objekt reprezentovaný tímto popisovačem typu.

GetEvents(Attribute[])

Vrátí filtrovanou kolekci popisovačů událostí pro objekt reprezentovaný tímto popisovačem typu.

Poznámky

Metoda GetEvents vrátí kolekci popisovačů událostí pro objekt, který tento popisovač typu představuje. K filtrování vrácené kolekce může být k dispozici volitelné pole atributů. Pokud není k dispozici žádný nadřazený objekt, vrátí metoda Empty.

GetEvents()

Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs

Vrátí kolekci popisovačů událostí pro objekt reprezentovaný tímto popisovačem 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

Návraty

Obsahující EventDescriptorCollection popisovače událostí pro objekt reprezentovaný tímto popisovačem typu. Výchozí hodnota je Empty.

Implementuje

Poznámky

Pokud byl do konstruktoru CustomTypeDescriptor předán nadřazený popisovač vlastního typu, GetEvents metoda zavolá odpovídající metodu nadřazeného objektu.

Viz také

Platí pro

GetEvents(Attribute[])

Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs
Zdroj:
CustomTypeDescriptor.cs

Vrátí filtrovanou kolekci popisovačů událostí pro objekt reprezentovaný tímto popisovačem typu.

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ GetEvents(cli::array <Attribute ^> ^ attributes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public virtual System.ComponentModel.EventDescriptorCollection GetEvents(Attribute[]? attributes);
public virtual System.ComponentModel.EventDescriptorCollection GetEvents(Attribute[] attributes);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
abstract member GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
override this.GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
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[]

Pole atributů, které se mají použít jako filtr. To může být null.

Návraty

Obsahuje EventDescriptorCollection popisy událostí pro objekt reprezentovaný tímto popisovačem typu. Výchozí hodnota je Empty.

Implementuje

Atributy

Poznámky

Pomocí parametru attributes můžete filtrovat vrácenou kolekci.

Pokud byl do konstruktoru CustomTypeDescriptor předán nadřazený popisovač vlastního typu, GetEvents metoda zavolá odpovídající metodu nadřazeného objektu.

Viz také

Platí pro