EventDescriptor Constructors

Definition

Initializes a new instance of the EventDescriptor class.

Overloads

EventDescriptor(MemberDescriptor)

Initializes a new instance of the EventDescriptor class with the name and attributes in the specified MemberDescriptor.

EventDescriptor(MemberDescriptor, Attribute[])

Initializes a new instance of the EventDescriptor class with the name in the specified MemberDescriptor and the attributes in both the MemberDescriptor and the Attribute array.

EventDescriptor(String, Attribute[])

Initializes a new instance of the EventDescriptor class with the specified name and attribute array.

EventDescriptor(MemberDescriptor)

Initializes a new instance of the EventDescriptor class with the name and attributes in the specified MemberDescriptor.

protected:
 EventDescriptor(System::ComponentModel::MemberDescriptor ^ descr);
protected EventDescriptor (System.ComponentModel.MemberDescriptor descr);
new System.ComponentModel.EventDescriptor : System.ComponentModel.MemberDescriptor -> System.ComponentModel.EventDescriptor
Protected Sub New (descr As MemberDescriptor)

Parameters

descr
MemberDescriptor

A MemberDescriptor that contains the name of the event and its attributes.

Applies to

EventDescriptor(MemberDescriptor, Attribute[])

Initializes a new instance of the EventDescriptor class with the name in the specified MemberDescriptor and the attributes in both the MemberDescriptor and the Attribute array.

protected:
 EventDescriptor(System::ComponentModel::MemberDescriptor ^ descr, cli::array <Attribute ^> ^ attrs);
protected EventDescriptor (System.ComponentModel.MemberDescriptor descr, Attribute[] attrs);
protected EventDescriptor (System.ComponentModel.MemberDescriptor descr, Attribute[]? attrs);
new System.ComponentModel.EventDescriptor : System.ComponentModel.MemberDescriptor * Attribute[] -> System.ComponentModel.EventDescriptor
Protected Sub New (descr As MemberDescriptor, attrs As Attribute())

Parameters

descr
MemberDescriptor

A MemberDescriptor that has the name of the member and its attributes.

attrs
Attribute[]

An Attribute array with the attributes you want to add to this event description.

Remarks

This constructor appends the attributes in the Attribute array to the attributes in the MemberDescriptor.

Applies to

EventDescriptor(String, Attribute[])

Initializes a new instance of the EventDescriptor class with the specified name and attribute array.

protected:
 EventDescriptor(System::String ^ name, cli::array <Attribute ^> ^ attrs);
protected EventDescriptor (string name, Attribute[] attrs);
protected EventDescriptor (string name, Attribute[]? attrs);
new System.ComponentModel.EventDescriptor : string * Attribute[] -> System.ComponentModel.EventDescriptor
Protected Sub New (name As String, attrs As Attribute())

Parameters

name
String

The name of the event.

attrs
Attribute[]

An array of type Attribute that contains the event attributes.

Applies to