TypeDescriptor.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şen veya tür için olay koleksiyonunu döndürür.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| GetEvents(Object) |
Belirtilen bileşen için olay koleksiyonunu döndürür. |
| GetEvents(Type) |
Belirtilen bileşen türü için olay koleksiyonunu döndürür. |
| GetEvents(Object, Attribute[]) |
Belirtilen öznitelik dizisini filtre olarak kullanarak belirtilen bir bileşen için olay koleksiyonunu döndürür. |
| GetEvents(Object, Boolean) |
Özel tür tanımlayıcısı ile belirtilen bir bileşen için olay koleksiyonunu döndürür. |
| GetEvents(Type, Attribute[]) |
Belirtilen öznitelik dizisini filtre olarak kullanarak belirtilen bileşen türü için olay koleksiyonunu döndürür. |
| GetEvents(Object, Attribute[], Boolean) |
Belirtilen öznitelik dizisini filtre olarak ve özel tür tanımlayıcısı kullanarak belirtilen bir bileşen için olay koleksiyonunu döndürür. |
GetEvents(Object)
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
Belirtilen bileşen için olay koleksiyonunu döndürür.
public:
static System::ComponentModel::EventDescriptorCollection ^ GetEvents(System::Object ^ component);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of component cannot be statically discovered.")]
public static System.ComponentModel.EventDescriptorCollection GetEvents(object component);
public static System.ComponentModel.EventDescriptorCollection GetEvents(object component);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of component cannot be statically discovered.")>]
static member GetEvents : obj -> System.ComponentModel.EventDescriptorCollection
static member GetEvents : obj -> System.ComponentModel.EventDescriptorCollection
Public Shared Function GetEvents (component As Object) As EventDescriptorCollection
Parametreler
- component
- Object
Olayları almak için bir bileşen.
Döndürülenler
Bu bileşen için olayları içeren bir EventDescriptorCollection .
- Öznitelikler
Özel durumlar
component , işlemler arası uzak bir nesnedir.
Örnekler
Bu yöntemin bir örneği için özelliğine Count bakın.
Açıklamalar
Verilen component parametre örneğinin sağladığı olay koleksiyonunu alır. Bu koleksiyon, sınıfın sağladığı olay kümesinden farklı olabilir.
component Parametre sitelenmişse, site ek olaylar ekleyebilir veya kaldırabilir.
ise componentnullboş bir koleksiyon döndürülür.
Döndürülen koleksiyonun sırasının çağrılar arasında aynı olması garanti edilmediğinden, kullanmadan önce her zaman sıralayın.
Ayrıca bkz.
- EventDescriptor
- EventDescriptorCollection
- GetEvents
- GetDefaultEvent
- CreateEvent
- GetAttributes
- GetProperties
Şunlara uygulanır
GetEvents(Type)
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
Belirtilen bileşen türü için olay koleksiyonunu döndürür.
public:
static System::ComponentModel::EventDescriptorCollection ^ GetEvents(Type ^ componentType);
public static System.ComponentModel.EventDescriptorCollection GetEvents(Type componentType);
static member GetEvents : Type -> System.ComponentModel.EventDescriptorCollection
Public Shared Function GetEvents (componentType As Type) As EventDescriptorCollection
Parametreler
Döndürülenler
Bu bileşen için olayları içeren bir EventDescriptorCollection .
Açıklamalar
Bu yöntemin bu sürümünü yalnızca nesnesinin bir örneğine sahip olmadığınızda çağırın.
componentType parametresi ise nullboş bir koleksiyon döndürülür.
Döndürülen koleksiyonun sırasının çağrılar arasında aynı olması garanti edilmediğinden, kullanmadan önce her zaman sıralayın.
Ayrıca bkz.
- EventDescriptor
- EventDescriptorCollection
- GetEvents
- GetDefaultEvent
- CreateEvent
- GetAttributes
- GetProperties
Şunlara uygulanır
GetEvents(Object, Attribute[])
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
Belirtilen öznitelik dizisini filtre olarak kullanarak belirtilen bir bileşen için olay koleksiyonunu döndürür.
public:
static System::ComponentModel::EventDescriptorCollection ^ GetEvents(System::Object ^ component, cli::array <Attribute ^> ^ attributes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of component cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public static System.ComponentModel.EventDescriptorCollection GetEvents(object component, Attribute[] attributes);
public static System.ComponentModel.EventDescriptorCollection GetEvents(object component, Attribute[] attributes);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of component cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
static member GetEvents : obj * Attribute[] -> System.ComponentModel.EventDescriptorCollection
static member GetEvents : obj * Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Shared Function GetEvents (component As Object, attributes As Attribute()) As EventDescriptorCollection
Parametreler
- component
- Object
Olayları almak için bir bileşen.
Döndürülenler
Bu bileşen için belirtilen özniteliklerle eşleşen olayları içeren bir EventDescriptorCollection .
- Öznitelikler
Özel durumlar
component , işlemler arası uzak bir nesnedir.
Açıklamalar
parametrenin component olayları bir sınıfın olaylarından farklı olabilir, çünkü parametrenin sitesi oluşturulursa component site olayları ekleyebilir veya kaldırabilir.
Dizi ve attributes nesnelerinin bir karışımına TypeAttribute sahip olabilir. Filtreleme aşağıdaki kurallarla tanımlanır:
A Type joker karakter olarak kabul edilir; özniteliğine sahip Type olan herhangi bir olayla eşleşir.
Bir olay aynı sınıfa sahip Attribute değilse, olay döndürülen diziye dahil değildir.
Özniteliği sınıfın Attribute bir örneğiyse, olayın tam eşleşmesi olması gerekir veya döndürülen diziye dahil değildir.
Bir Attribute örnek belirtilirse ve varsayılan olaysa, olayda örneği olmasa bile döndürülen diziye Attribute eklenir.
ise componentnull, boş bir koleksiyon döndürülür.
Döndürülen koleksiyonun sırasının çağrılar arasında aynı olması garanti edilmediğinden, kullanmadan önce her zaman sıralayın.
Ayrıca bkz.
- EventDescriptor
- EventDescriptorCollection
- GetEvents
- GetDefaultEvent
- CreateEvent
- GetAttributes
- GetProperties
Şunlara uygulanır
GetEvents(Object, Boolean)
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
Özel tür tanımlayıcısı ile belirtilen bir bileşen için olay koleksiyonunu döndürür.
public:
static System::ComponentModel::EventDescriptorCollection ^ GetEvents(System::Object ^ component, bool noCustomTypeDesc);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of component cannot be statically discovered.")]
public static System.ComponentModel.EventDescriptorCollection GetEvents(object component, bool noCustomTypeDesc);
public static System.ComponentModel.EventDescriptorCollection GetEvents(object component, bool noCustomTypeDesc);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of component cannot be statically discovered.")>]
static member GetEvents : obj * bool -> System.ComponentModel.EventDescriptorCollection
static member GetEvents : obj * bool -> System.ComponentModel.EventDescriptorCollection
Public Shared Function GetEvents (component As Object, noCustomTypeDesc As Boolean) As EventDescriptorCollection
Parametreler
- component
- Object
Olayları almak için bir bileşen.
- noCustomTypeDesc
- Boolean
true özel tür açıklama bilgilerini dikkate almamak için; aksi takdirde , false.
Döndürülenler
Bu bileşen için olayları içeren bir EventDescriptorCollection .
- Öznitelikler
Özel durumlar
component , işlemler arası uzak bir nesnedir.
Açıklamalar
Bu yöntem, verilen component parametre örneğinin sağladığı bir olay koleksiyonunu alır. Bu, sınıfın sağladığı olay kümesinden farklı olabilir.
component Parametre sitelenmişse, site ek olaylar ekleyebilir veya kaldırabilir.
ise componentnull, boş bir koleksiyon döndürülür.
Döndürülen koleksiyonun sırasının çağrılar arasında aynı olması garanti edilmediğinden, kullanmadan önce her zaman sıralayın.
Ayrıca bkz.
- EventDescriptor
- EventDescriptorCollection
- ICustomTypeDescriptor
- GetEvents
- GetDefaultEvent
- CreateEvent
- GetAttributes
- GetProperties
Şunlara uygulanır
GetEvents(Type, Attribute[])
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
Belirtilen öznitelik dizisini filtre olarak kullanarak belirtilen bileşen türü için olay koleksiyonunu döndürür.
public:
static System::ComponentModel::EventDescriptorCollection ^ GetEvents(Type ^ componentType, 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 static System.ComponentModel.EventDescriptorCollection GetEvents(Type componentType, Attribute[] attributes);
public static System.ComponentModel.EventDescriptorCollection GetEvents(Type componentType, Attribute[] attributes);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
static member GetEvents : Type * Attribute[] -> System.ComponentModel.EventDescriptorCollection
static member GetEvents : Type * Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Shared Function GetEvents (componentType As Type, attributes As Attribute()) As EventDescriptorCollection
Parametreler
Döndürülenler
Bu bileşen için belirtilen özniteliklerle eşleşen olayları içeren bir EventDescriptorCollection .
- Öznitelikler
Açıklamalar
Bu yöntemin bu sürümünü yalnızca nesnesinin bir örneğine sahip olmadığınızda çağırın.
attributes parametre dizisi ve nesnelerinin bir karışımına TypeAttribute sahip olabilir. Filtreleme aşağıdaki kurallarla tanımlanır:
A Type joker karakter olarak kabul edilir; özniteliğine sahip Type olan herhangi bir olayla eşleşir.
Bir olay aynı sınıfa sahip Attribute değilse, olay döndürülen diziye dahil değildir.
Özniteliği sınıfın Attribute bir örneğiyse, olayın tam eşleşmesi olması gerekir veya döndürülen diziye dahil değildir.
Bir Attribute örnek belirtilirse ve varsayılan olaysa, olayda örneği olmasa bile döndürülen diziye Attribute eklenir.
componentType parametresi ise nullboş bir koleksiyon döndürülür.
Döndürülen koleksiyonun sırasının çağrılar arasında aynı olması garanti edilmediğinden, kullanmadan önce her zaman sıralayın.
Ayrıca bkz.
- EventDescriptor
- EventDescriptorCollection
- GetEvents
- GetDefaultEvent
- CreateEvent
- GetAttributes
- GetProperties
Şunlara uygulanır
GetEvents(Object, Attribute[], Boolean)
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
Belirtilen öznitelik dizisini filtre olarak ve özel tür tanımlayıcısı kullanarak belirtilen bir bileşen için olay koleksiyonunu döndürür.
public:
static System::ComponentModel::EventDescriptorCollection ^ GetEvents(System::Object ^ component, cli::array <Attribute ^> ^ attributes, bool noCustomTypeDesc);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of component cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public static System.ComponentModel.EventDescriptorCollection GetEvents(object component, Attribute[]? attributes, bool noCustomTypeDesc);
public static System.ComponentModel.EventDescriptorCollection GetEvents(object component, Attribute[] attributes, bool noCustomTypeDesc);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of component cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
static member GetEvents : obj * Attribute[] * bool -> System.ComponentModel.EventDescriptorCollection
static member GetEvents : obj * Attribute[] * bool -> System.ComponentModel.EventDescriptorCollection
Public Shared Function GetEvents (component As Object, attributes As Attribute(), noCustomTypeDesc As Boolean) As EventDescriptorCollection
Parametreler
- component
- Object
Olayları almak için bir bileşen.
- noCustomTypeDesc
- Boolean
true özel tür açıklama bilgilerini dikkate almamak için; aksi takdirde , false.
Döndürülenler
Bu bileşen için belirtilen özniteliklerle eşleşen olayları içeren bir EventDescriptorCollection .
- Öznitelikler
Özel durumlar
component , işlemler arası uzak bir nesnedir.
Açıklamalar
parametrenin component olayları bir sınıfın olaylarından farklı olabilir, çünkü parametrenin sitesi oluşturulursa component site olayları ekleyebilir veya kaldırabilir.
attributes parametre dizisi ve nesnelerinin bir karışımına TypeAttribute sahip olabilir. Filtreleme aşağıdaki kurallarla tanımlanır:
A Type joker karakter olarak kabul edilir; özniteliğine sahip Type olan herhangi bir olayla eşleşir.
Bir olay aynı sınıfa sahip Attribute değilse, olay döndürülen diziye dahil değildir.
Özniteliği sınıfın Attribute bir örneğiyse, olayın tam eşleşmesi olması gerekir veya döndürülen diziye dahil değildir.
Bir Attribute örnek belirtilirse ve varsayılan olaysa, olayda örneği olmasa bile döndürülen diziye Attribute eklenir.
ise componentnull, boş bir koleksiyon döndürülür.
Döndürülen koleksiyonun sırasının çağrılar arasında aynı olması garanti edilmediğinden, kullanmadan önce her zaman sıralayın.
Ayrıca bkz.
- EventDescriptor
- EventDescriptorCollection
- ICustomTypeDescriptor
- GetEvents
- GetDefaultEvent
- CreateEvent
- GetAttributes
- GetProperties