CustomTypeDescriptor.GetEvents Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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
| Name | Description |
|---|---|
| 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ş bir olay tanımlayıcıları koleksiyonu döndürür. |
Açıklamalar
yöntemi, GetEvents bu tür tanımlayıcının temsil 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
- 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 bir. 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 öğesinin karşılık gelen yöntemini çağırır.
Ayrıca bkz.
Şunlara uygulanır
GetEvents(Attribute[])
- Kaynak:
- CustomTypeDescriptor.cs
- Kaynak:
- CustomTypeDescriptor.cs
- Kaynak:
- CustomTypeDescriptor.cs
- Kaynak:
- CustomTypeDescriptor.cs
- Kaynak:
- CustomTypeDescriptor.cs
Bu tür tanımlayıcısı tarafından temsil edilen nesne için filtrelenmiş bir olay tanımlayıcıları koleksiyonu döndürür.
public:
virtual System::ComponentModel::EventDescriptorCollection ^ GetEvents(cli::array <Attribute ^> ^ attributes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public virtual System.ComponentModel.EventDescriptorCollection GetEvents(Attribute[]? attributes);
public virtual System.ComponentModel.EventDescriptorCollection GetEvents(Attribute[] attributes);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
abstract member GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
override this.GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
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
- Öznitelikler
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 öğesinin karşılık gelen yöntemini çağırır.