TypeDescriptor.GetDefaultEvent Metódus

Definíció

Egy összetevő vagy típus alapértelmezett eseményét adja vissza.

Túlterhelések

Name Description
GetDefaultEvent(Object)

A megadott összetevő alapértelmezett eseményét adja vissza.

GetDefaultEvent(Type)

A megadott összetevőtípus alapértelmezett eseményét adja vissza.

GetDefaultEvent(Object, Boolean)

Egy egyéni típusú leíróval rendelkező összetevő alapértelmezett eseményét adja vissza.

GetDefaultEvent(Object)

Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs

A megadott összetevő alapértelmezett eseményét adja vissza.

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

Paraméterek

component
Object

Az az összetevő, amely számára lekérheti az eseményt.

Válaszok

Az EventDescriptor alapértelmezett eseményt tartalmazó esemény, vagy null ha nincsenek események.

Attribútumok

Kivételek

component az null.

component egy folyamatközi távoli objektum.

Megjegyzések

Ez a metódus egyenértékű a túlterhelt GetDefaultEvent(Object, Boolean) metódussal egy második paraméterrel false.

Lásd még

A következőre érvényes:

GetDefaultEvent(Type)

Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs

A megadott összetevőtípus alapértelmezett eseményét adja vissza.

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

Paraméterek

componentType
Type

A Type célösszetevő.

Válaszok

Az EventDescriptor alapértelmezett eseményt tartalmazó esemény, vagy null ha nincsenek események.

Attribútumok

Kivételek

componentType az null.

Megjegyzések

Ennek a metódusnak a verzióját csak akkor hívja meg, ha nem rendelkezik az objektum egy példányával.

Lásd még

A következőre érvényes:

GetDefaultEvent(Object, Boolean)

Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs

Egy egyéni típusú leíróval rendelkező összetevő alapértelmezett eseményét adja vissza.

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

Paraméterek

component
Object

Az az összetevő, amely számára lekérheti az eseményt.

noCustomTypeDesc
Boolean

truene vegye figyelembe az egyéni típus leírási adatait; egyéb esetben. false

Válaszok

Az EventDescriptor alapértelmezett eseményt tartalmazó esemény, vagy null ha nincsenek események.

Attribútumok

Kivételek

component az null.

component egy folyamatközi távoli objektum.

Lásd még

A következőre érvényes: