CustomTypeDescriptor.GetEvents Yöntem

Tanım

Bu tür tanımlayıcısı tarafından temsil edilen nesne için olay tanımlayıcıları koleksiyonunu döndürür.

Aşırı Yüklemeler

GetEvents()

Bu tür tanımlayıcısı tarafından temsil edilen nesne için olay tanımlayıcıları koleksiyonunu döndürür.

GetEvents(Attribute[])

Bu tür tanımlayıcısı tarafından temsil edilen nesne için filtrelenmiş olay tanımlayıcıları koleksiyonunu döndürür.

Açıklamalar

yöntemi, GetEvents bu tür tanımlayıcının temsil etmekte olduğu nesne için bir olay tanımlayıcıları koleksiyonu döndürür. Döndürülen koleksiyonu filtrelemek için isteğe bağlı bir öznitelik dizisi sağlanabilir. Üst öğe sağlanmadıysa yöntemi döndürür Empty.

GetEvents()

Kaynak:
CustomTypeDescriptor.cs
Kaynak:
CustomTypeDescriptor.cs
Kaynak:
CustomTypeDescriptor.cs

Bu tür tanımlayıcısı tarafından temsil edilen nesne için olay tanımlayıcıları koleksiyonunu döndürür.

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ GetEvents();
public virtual System.ComponentModel.EventDescriptorCollection GetEvents ();
abstract member GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
override this.GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function GetEvents () As EventDescriptorCollection

Döndürülenler

EventDescriptorCollection Bu tür tanımlayıcısı tarafından temsil edilen nesne için olay tanımlayıcılarını içeren. Varsayılan değer: Empty.

Uygulamalar

Açıklamalar

Oluşturucuya CustomTypeDescriptor bir üst özel tür tanımlayıcısı geçirildiyse, GetEvents yöntemi üst öğeye karşılık gelen yöntemi çağırır.

Ayrıca bkz.

Şunlara uygulanır

GetEvents(Attribute[])

Kaynak:
CustomTypeDescriptor.cs
Kaynak:
CustomTypeDescriptor.cs
Kaynak:
CustomTypeDescriptor.cs

Bu tür tanımlayıcısı tarafından temsil edilen nesne için filtrelenmiş olay tanımlayıcıları koleksiyonunu döndürür.

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ GetEvents(cli::array <Attribute ^> ^ attributes);
public virtual System.ComponentModel.EventDescriptorCollection GetEvents (Attribute[] attributes);
public virtual System.ComponentModel.EventDescriptorCollection GetEvents (Attribute[]? attributes);
abstract member GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
override this.GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function GetEvents (attributes As Attribute()) As EventDescriptorCollection

Parametreler

attributes
Attribute[]

Filtre olarak kullanılacak öznitelik dizisi. Bu olabilir null.

Döndürülenler

EventDescriptorCollection Bu tür tanımlayıcısı tarafından temsil edilen nesne için olay açıklamalarını içeren bir. Varsayılan değer: Empty.

Uygulamalar

Açıklamalar

Döndürülen koleksiyonu filtrelemek için parametresini kullanabilirsiniz attributes .

Oluşturucuya CustomTypeDescriptor bir üst özel tür tanımlayıcısı geçirildiyse, GetEvents yöntemi üst öğeye karşılık gelen yöntemi çağırır.

Ayrıca bkz.

Şunlara uygulanır