ICustomTypeDescriptor.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.
Bir bileşenin bu örneği için olayları döndürür.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| GetEvents() |
Bir bileşenin bu örneği için olayları döndürür. |
| GetEvents(Attribute[]) |
Belirtilen öznitelik dizisini filtre olarak kullanarak bir bileşenin bu örneği için olayları döndürür. |
GetEvents()
- Kaynak:
- ICustomTypeDescriptor.cs
- Kaynak:
- ICustomTypeDescriptor.cs
- Kaynak:
- ICustomTypeDescriptor.cs
Bir bileşenin bu örneği için olayları döndürür.
public:
System::ComponentModel::EventDescriptorCollection ^ GetEvents();
public System.ComponentModel.EventDescriptorCollection GetEvents();
abstract member GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents () As EventDescriptorCollection
Döndürülenler
EventDescriptorCollection Bu bileşen örneğinin olaylarını temsil eden bir.
Açıklamalar
Bu örneğin olayları, sınıfın sağladığı olay kümesinden farklı olabilir. Örneğin, bileşen site tabanlıysa, site ek olaylar ekleyebilir veya kaldırabilir.
Hiçbir özellik belirtilmezse uygulayıcılar döndürebilir EventDescriptorCollection.Empty . Bu yöntem hiçbir zaman döndürmemelidir null.
Ayrıca bkz.
Şunlara uygulanır
GetEvents(Attribute[])
- Kaynak:
- ICustomTypeDescriptor.cs
- Kaynak:
- ICustomTypeDescriptor.cs
- Kaynak:
- ICustomTypeDescriptor.cs
Belirtilen öznitelik dizisini filtre olarak kullanarak bir bileşenin bu örneği için olayları döndürür.
public:
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 System.ComponentModel.EventDescriptorCollection GetEvents(Attribute[]? attributes);
public 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
abstract member GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents (attributes As Attribute()) As EventDescriptorCollection
Parametreler
Döndürülenler
EventDescriptorCollection Bu bileşen örneği için filtrelenmiş olayları temsil eden bir.
- Öznitelikler
Açıklamalar
Bu örneğin olayları, sınıfın sağladığı olay kümesinden farklı olabilir. Örneğin, bileşen site tabanlıysa, site ek olaylar ekleyebilir veya kaldırabilir.
dizisinde Attribute bir attributes belirtilirse ve olay bu öznitelik için sınıfın bir örneğine sahip değilse, döndürülen dizi varsayılan olaysa Attribute olayı içerir.
Ayrıca bkz.
- Attribute
- DefaultEventAttribute
- GetEvents
- EventDescriptorCollection
- GetProperties
- GetAttributes()
- GetDefaultEvent()