MemberDescriptor Constructors

Definition

Initializes a new instance of the MemberDescriptor class.

Overloads

MemberDescriptor(MemberDescriptor)

Initializes a new instance of the MemberDescriptor class with the specified MemberDescriptor.

MemberDescriptor(String)

Initializes a new instance of the MemberDescriptor class with the specified name of the member.

MemberDescriptor(MemberDescriptor, Attribute[])

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

MemberDescriptor(String, Attribute[])

Initializes a new instance of the MemberDescriptor class with the specified name of the member and an array of attributes.

MemberDescriptor(MemberDescriptor)

Source:
MemberDescriptor.cs
Source:
MemberDescriptor.cs
Source:
MemberDescriptor.cs

Initializes a new instance of the MemberDescriptor class with the specified MemberDescriptor.

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

Parameters

descr
MemberDescriptor

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

Applies to

MemberDescriptor(String)

Source:
MemberDescriptor.cs
Source:
MemberDescriptor.cs
Source:
MemberDescriptor.cs

Initializes a new instance of the MemberDescriptor class with the specified name of the member.

protected:
 MemberDescriptor(System::String ^ name);
protected MemberDescriptor (string name);
new System.ComponentModel.MemberDescriptor : string -> System.ComponentModel.MemberDescriptor
Protected Sub New (name As String)

Parameters

name
String

The name of the member.

Exceptions

The name is an empty string ("") or null.

Applies to

MemberDescriptor(MemberDescriptor, Attribute[])

Source:
MemberDescriptor.cs
Source:
MemberDescriptor.cs
Source:
MemberDescriptor.cs

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

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

Parameters

oldMemberDescriptor
MemberDescriptor

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

newAttributes
Attribute[]

An array of Attribute objects with the attributes you want to add to the member.

Remarks

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

Applies to

MemberDescriptor(String, Attribute[])

Source:
MemberDescriptor.cs
Source:
MemberDescriptor.cs
Source:
MemberDescriptor.cs

Initializes a new instance of the MemberDescriptor class with the specified name of the member and an array of attributes.

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

Parameters

name
String

The name of the member.

attributes
Attribute[]

An array of type Attribute that contains the member attributes.

Exceptions

The name is an empty string ("") or null.

Applies to