CustomTypeDescriptor.GetDefaultEvent Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Az ilyen típusú leíró által képviselt objektum alapértelmezett eseményének eseményleíróját adja vissza.
public:
virtual System::ComponentModel::EventDescriptor ^ GetDefaultEvent();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code.")]
public virtual System.ComponentModel.EventDescriptor? GetDefaultEvent();
public virtual System.ComponentModel.EventDescriptor GetDefaultEvent();
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code.")>]
abstract member GetDefaultEvent : unit -> System.ComponentModel.EventDescriptor
override this.GetDefaultEvent : unit -> System.ComponentModel.EventDescriptor
abstract member GetDefaultEvent : unit -> System.ComponentModel.EventDescriptor
override this.GetDefaultEvent : unit -> System.ComponentModel.EventDescriptor
Public Overridable Function GetDefaultEvent () As EventDescriptor
Válaszok
Az EventDescriptor ilyen típusú leíró által képviselt objektum alapértelmezett eseménye. Az alapértelmezett érték a null.
Megvalósítás
- Attribútumok
Megjegyzések
Ha egy szülő egyéni típusú leírót ad át a CustomTypeDescriptor konstruktornak, a GetDefaultEvent metódus meghívja a szülő megfelelő metódusát.