TypeDescriptor.GetDefaultEvent 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í výchozí událost komponenty nebo typu.
Přetížení
| Name | Description |
|---|---|
| GetDefaultEvent(Object) |
Vrátí výchozí událost pro zadanou komponentu. |
| GetDefaultEvent(Type) |
Vrátí výchozí událost pro zadaný typ komponenty. |
| GetDefaultEvent(Object, Boolean) |
Vrátí výchozí událost komponenty s popisovačem vlastního typu. |
GetDefaultEvent(Object)
- Zdroj:
- TypeDescriptor.cs
- Zdroj:
- TypeDescriptor.cs
- Zdroj:
- TypeDescriptor.cs
- Zdroj:
- TypeDescriptor.cs
- Zdroj:
- TypeDescriptor.cs
Vrátí výchozí událost pro zadanou komponentu.
public:
static System::ComponentModel::EventDescriptor ^ GetDefaultEvent(System::Object ^ component);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code. The Type of component cannot be statically discovered.")]
public static System.ComponentModel.EventDescriptor? GetDefaultEvent(object component);
public static System.ComponentModel.EventDescriptor GetDefaultEvent(object component);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code. The Type of component cannot be statically discovered.")>]
static member GetDefaultEvent : obj -> System.ComponentModel.EventDescriptor
static member GetDefaultEvent : obj -> System.ComponentModel.EventDescriptor
Public Shared Function GetDefaultEvent (component As Object) As EventDescriptor
Parametry
- component
- Object
Komponenta pro získání události.
Návraty
Událost EventDescriptor s výchozí událostí nebo null pokud neexistují žádné události.
- Atributy
Výjimky
component je null.
component je objekt vzdáleného procesu.
Poznámky
Tato metoda je ekvivalentní přetížené GetDefaultEvent(Object, Boolean) metodě s druhým parametrem false.
Viz také
- DefaultEventAttribute
- EventDescriptor
- GetDefaultEvent()
- GetEvents
- CreateEvent
- GetAttributes
- GetProperties
- GetDefaultProperty
Platí pro
GetDefaultEvent(Type)
- Zdroj:
- TypeDescriptor.cs
- Zdroj:
- TypeDescriptor.cs
- Zdroj:
- TypeDescriptor.cs
- Zdroj:
- TypeDescriptor.cs
- Zdroj:
- TypeDescriptor.cs
Vrátí výchozí událost pro zadaný typ komponenty.
public:
static System::ComponentModel::EventDescriptor ^ GetDefaultEvent(Type ^ componentType);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code.")]
public static System.ComponentModel.EventDescriptor? GetDefaultEvent(Type componentType);
public static System.ComponentModel.EventDescriptor GetDefaultEvent(Type componentType);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code.")>]
static member GetDefaultEvent : Type -> System.ComponentModel.EventDescriptor
static member GetDefaultEvent : Type -> System.ComponentModel.EventDescriptor
Public Shared Function GetDefaultEvent (componentType As Type) As EventDescriptor
Parametry
Návraty
Událost EventDescriptor s výchozí událostí nebo null pokud neexistují žádné události.
- Atributy
Výjimky
componentType je null.
Poznámky
Tuto verzi této metody zavolejte pouze v případě, že nemáte instanci objektu.
Viz také
- DefaultEventAttribute
- EventDescriptor
- GetDefaultEvent()
- GetEvents
- CreateEvent
- GetAttributes
- GetProperties
- GetDefaultProperty
Platí pro
GetDefaultEvent(Object, Boolean)
- Zdroj:
- TypeDescriptor.cs
- Zdroj:
- TypeDescriptor.cs
- Zdroj:
- TypeDescriptor.cs
- Zdroj:
- TypeDescriptor.cs
- Zdroj:
- TypeDescriptor.cs
Vrátí výchozí událost komponenty s popisovačem vlastního typu.
public:
static System::ComponentModel::EventDescriptor ^ GetDefaultEvent(System::Object ^ component, bool noCustomTypeDesc);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code. The Type of component cannot be statically discovered.")]
public static System.ComponentModel.EventDescriptor? GetDefaultEvent(object component, bool noCustomTypeDesc);
public static System.ComponentModel.EventDescriptor GetDefaultEvent(object component, bool noCustomTypeDesc);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code. The Type of component cannot be statically discovered.")>]
static member GetDefaultEvent : obj * bool -> System.ComponentModel.EventDescriptor
static member GetDefaultEvent : obj * bool -> System.ComponentModel.EventDescriptor
Public Shared Function GetDefaultEvent (component As Object, noCustomTypeDesc As Boolean) As EventDescriptor
Parametry
- component
- Object
Komponenta pro získání události.
- noCustomTypeDesc
- Boolean
truenebere v úvahu informace o popisu vlastního typu; v opačném případě . false
Návraty
Událost EventDescriptor s výchozí událostí nebo null pokud neexistují žádné události.
- Atributy
Výjimky
component je null.
component je objekt vzdáleného procesu.
Viz také
- DefaultEventAttribute
- EventDescriptor
- ICustomTypeDescriptor
- GetDefaultEvent()
- GetEvents
- CreateEvent
- GetAttributes
- GetProperties
- GetDefaultProperty