ICustomTypeDescriptor.GetEvents Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vrátí události pro tuto instanci komponenty.
Přetížení
| Name | Description |
|---|---|
| GetEvents() |
Vrátí události pro tuto instanci komponenty. |
| GetEvents(Attribute[]) |
Vrátí události pro tuto instanci komponenty pomocí zadaného pole atributů jako filtru. |
GetEvents()
- Zdroj:
- ICustomTypeDescriptor.cs
- Zdroj:
- ICustomTypeDescriptor.cs
- Zdroj:
- ICustomTypeDescriptor.cs
Vrátí události pro tuto instanci komponenty.
public:
System::ComponentModel::EventDescriptorCollection ^ GetEvents();
public System.ComponentModel.EventDescriptorCollection GetEvents();
abstract member GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents () As EventDescriptorCollection
Návraty
Představuje EventDescriptorCollection události pro tuto instanci komponenty.
Poznámky
Události pro tuto instanci se mohou lišit od sady událostí, které třída poskytuje. Pokud je například komponenta založená na lokalitě, může lokalita přidat nebo odebrat další události.
Implementátory můžou vracet EventDescriptorCollection.Empty , pokud nejsou zadány žádné vlastnosti. Tato metoda by nikdy neměla vrátit null.
Viz také
Platí pro
GetEvents(Attribute[])
- Zdroj:
- ICustomTypeDescriptor.cs
- Zdroj:
- ICustomTypeDescriptor.cs
- Zdroj:
- ICustomTypeDescriptor.cs
Vrátí události pro tuto instanci komponenty pomocí zadaného pole atributů jako filtru.
public:
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 System.ComponentModel.EventDescriptorCollection GetEvents(Attribute[]? attributes);
public 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
abstract member GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents (attributes As Attribute()) As EventDescriptorCollection
Parametry
Návraty
Představuje EventDescriptorCollection filtrované události pro tuto instanci komponenty.
- Atributy
Poznámky
Události pro tuto instanci se mohou lišit od sady událostí, které třída poskytuje. Pokud je například komponenta založená na lokalitě, může lokalita přidat nebo odebrat další události.
Attribute Pokud je zadána v attributes poli a událost nemá instanci třídy pro tento atribut, vrácená pole obsahuje událost, pokud Attribute je výchozí událost.
Viz také
- Attribute
- DefaultEventAttribute
- GetEvents
- EventDescriptorCollection
- GetProperties
- GetAttributes()
- GetDefaultEvent()