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);

Parameters

descr
MemberDescriptor

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

Applies to

.NET 9 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0, 2.1

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 (string name);

Parameters

name
String

The name of the member.

Exceptions

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

Applies to

.NET 9 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0, 2.1

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, Attribute[] newAttributes);
protected MemberDescriptor (System.ComponentModel.MemberDescriptor oldMemberDescriptor, Attribute[]? newAttributes);

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

.NET 9 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0, 2.1

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 (string name, Attribute[] attributes);
protected MemberDescriptor (string name, Attribute[]? attributes);

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

.NET 9 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0, 2.1