TypeDescriptor.GetDefaultEvent Yöntem

Tanım

Bir bileşen veya tür için varsayılan olayı döndürür.

Aşırı Yüklemeler

Name Description
GetDefaultEvent(Object)

Belirtilen bileşen için varsayılan olayı döndürür.

GetDefaultEvent(Type)

Belirtilen bileşen türü için varsayılan olayı döndürür.

GetDefaultEvent(Object, Boolean)

Özel tür tanımlayıcısı olan bir bileşen için varsayılan olayı döndürür.

GetDefaultEvent(Object)

Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs

Belirtilen bileşen için varsayılan olayı döndürür.

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

Parametreler

component
Object

Olayı almak için bileşen.

Döndürülenler

Varsayılan olayı içeren veya EventDescriptor olay olmayan birnull.

Öznitelikler

Özel durumlar

component, null'e eşittir.

component , işlemler arası uzak bir nesnedir.

Açıklamalar

Bu yöntem, ikinci parametresi olan aşırı yüklenmiş GetDefaultEvent(Object, Boolean) yönteme eşdeğerdir false.

Ayrıca bkz.

Şunlara uygulanır

GetDefaultEvent(Type)

Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs

Belirtilen bileşen türü için varsayılan olayı döndürür.

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

Parametreler

componentType
Type

Type Hedef bileşenin.

Döndürülenler

Varsayılan olayı içeren veya EventDescriptor olay olmayan birnull.

Öznitelikler

Özel durumlar

componentType, null'e eşittir.

Açıklamalar

Bu yöntemin bu sürümünü yalnızca nesnesinin bir örneğine sahip olmadığınızda çağırın.

Ayrıca bkz.

Şunlara uygulanır

GetDefaultEvent(Object, Boolean)

Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs

Özel tür tanımlayıcısı olan bir bileşen için varsayılan olayı döndürür.

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

Parametreler

component
Object

Olayı almak için bileşen.

noCustomTypeDesc
Boolean

true özel tür açıklama bilgilerini dikkate almamak için; aksi takdirde , false.

Döndürülenler

Varsayılan olayı içeren veya EventDescriptor olay olmayan birnull.

Öznitelikler

Özel durumlar

component, null'e eşittir.

component , işlemler arası uzak bir nesnedir.

Ayrıca bkz.

Şunlara uygulanır