Aracılığıyla paylaş


EventDescriptorCollection Oluşturucular

Tanım

EventDescriptorCollection sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

Name Description
EventDescriptorCollection(EventDescriptor[])

Verilen nesne dizisiyle sınıfının yeni bir örneğini EventDescriptorCollectionEventDescriptor başlatır.

EventDescriptorCollection(EventDescriptor[], Boolean)

Verilen nesne dizisiyle sınıfının yeni bir örneğini EventDescriptorCollectionEventDescriptor başlatır. Koleksiyon isteğe bağlı olarak salt okunurdur.

EventDescriptorCollection(EventDescriptor[])

Kaynak:
EventDescriptorCollection.cs
Kaynak:
EventDescriptorCollection.cs
Kaynak:
EventDescriptorCollection.cs
Kaynak:
EventDescriptorCollection.cs
Kaynak:
EventDescriptorCollection.cs

Verilen nesne dizisiyle sınıfının yeni bir örneğini EventDescriptorCollectionEventDescriptor başlatır.

public:
 EventDescriptorCollection(cli::array <System::ComponentModel::EventDescriptor ^> ^ events);
public EventDescriptorCollection(System.ComponentModel.EventDescriptor[]? events);
public EventDescriptorCollection(System.ComponentModel.EventDescriptor[] events);
new System.ComponentModel.EventDescriptorCollection : System.ComponentModel.EventDescriptor[] -> System.ComponentModel.EventDescriptorCollection
Public Sub New (events As EventDescriptor())

Parametreler

events
EventDescriptor[]

Bu koleksiyon için olayları sağlayan tür EventDescriptor dizisi.

Örnekler

Aşağıdaki kod örneği, üzerindeki button1olayları kullanarak yeni EventDescriptorCollection bir sınıf oluşturur. Bir formda örneğinin oluşturulmasını gerektirir button1 .

EventDescriptorCollection^ events = TypeDescriptor::GetEvents( button1 );
_ = TypeDescriptor.GetEvents(button1);
Dim events As EventDescriptorCollection = TypeDescriptor.GetEvents(button1)

Açıklamalar

events Parametresi boşsa, bu oluşturucu boş EventDescriptorCollection bir sınıf oluşturur.

Bu HostProtectionAttribute üyeye uygulanan öznitelik şu Resources özellik değerine sahiptir: Synchronization. HostProtectionAttribute masaüstü uygulamalarını etkilemez (genellikle bir simgeye çift tıklayarak, komut yazarak veya bir tarayıcıya URL girerek başlatılır). Daha fazla bilgi için bkz HostProtectionAttribute . sınıf veya SQL Server Programlama ve Konak Koruması Öznitelikleri.

Ayrıca bkz.

Şunlara uygulanır

EventDescriptorCollection(EventDescriptor[], Boolean)

Kaynak:
EventDescriptorCollection.cs
Kaynak:
EventDescriptorCollection.cs
Kaynak:
EventDescriptorCollection.cs
Kaynak:
EventDescriptorCollection.cs
Kaynak:
EventDescriptorCollection.cs

Verilen nesne dizisiyle sınıfının yeni bir örneğini EventDescriptorCollectionEventDescriptor başlatır. Koleksiyon isteğe bağlı olarak salt okunurdur.

public:
 EventDescriptorCollection(cli::array <System::ComponentModel::EventDescriptor ^> ^ events, bool readOnly);
public EventDescriptorCollection(System.ComponentModel.EventDescriptor[]? events, bool readOnly);
public EventDescriptorCollection(System.ComponentModel.EventDescriptor[] events, bool readOnly);
new System.ComponentModel.EventDescriptorCollection : System.ComponentModel.EventDescriptor[] * bool -> System.ComponentModel.EventDescriptorCollection
Public Sub New (events As EventDescriptor(), readOnly As Boolean)

Parametreler

events
EventDescriptor[]

Bu koleksiyon için olayları sağlayan tür EventDescriptor dizisi.

readOnly
Boolean

true salt okunur bir koleksiyon belirtmek için; aksi takdirde , false.

Örnekler

Aşağıdaki kod örneği, üzerindeki button1olayları kullanarak yeni EventDescriptorCollection bir sınıf oluşturur. Bir formda örneğinin oluşturulmasını gerektirir button1 .

EventDescriptorCollection^ events = TypeDescriptor::GetEvents( button1 );
_ = TypeDescriptor.GetEvents(button1);
Dim events As EventDescriptorCollection = TypeDescriptor.GetEvents(button1)

Açıklamalar

events Parametresi boşsa, bu oluşturucu boş EventDescriptorCollection bir sınıf oluşturur.

Uyarı

Bu HostProtectionAttribute sınıfa uygulanan öznitelik şu Resources özellik değerine sahiptir: Synchronization. HostProtectionAttribute masaüstü uygulamalarını etkilemez (genellikle bir simgeye çift tıklayarak, komut yazarak veya bir tarayıcıya URL girerek başlatılır). Daha fazla bilgi için bkz HostProtectionAttribute . sınıf veya SQL Server Programlama ve Konak Koruması Öznitelikleri.

Ayrıca bkz.

Şunlara uygulanır