PropertyDescriptor Constructors

Definition

Initializes a new instance of the PropertyDescriptor class.

Overloads

PropertyDescriptor(MemberDescriptor)

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

PropertyDescriptor(MemberDescriptor, Attribute[])

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

PropertyDescriptor(String, Attribute[])

Initializes a new instance of the PropertyDescriptor class with the specified name and attributes.

PropertyDescriptor(MemberDescriptor)

Source:
PropertyDescriptor.cs
Source:
PropertyDescriptor.cs
Source:
PropertyDescriptor.cs

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

C#
protected PropertyDescriptor(System.ComponentModel.MemberDescriptor descr);

Parameters

descr
MemberDescriptor

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

See also

Applies to

.NET 10 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, 10
.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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

PropertyDescriptor(MemberDescriptor, Attribute[])

Source:
PropertyDescriptor.cs
Source:
PropertyDescriptor.cs
Source:
PropertyDescriptor.cs

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

C#
protected PropertyDescriptor(System.ComponentModel.MemberDescriptor descr, Attribute[]? attrs);
C#
protected PropertyDescriptor(System.ComponentModel.MemberDescriptor descr, Attribute[] attrs);

Parameters

descr
MemberDescriptor

A MemberDescriptor containing the name of the member and its attributes.

attrs
Attribute[]

An Attribute array containing the attributes you want to associate with the property.

Remarks

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

See also

Applies to

.NET 10 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, 10
.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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

PropertyDescriptor(String, Attribute[])

Source:
PropertyDescriptor.cs
Source:
PropertyDescriptor.cs
Source:
PropertyDescriptor.cs

Initializes a new instance of the PropertyDescriptor class with the specified name and attributes.

C#
protected PropertyDescriptor(string name, Attribute[]? attrs);
C#
protected PropertyDescriptor(string name, Attribute[] attrs);

Parameters

name
String

The name of the property.

attrs
Attribute[]

An array of type Attribute that contains the property attributes.

See also

Applies to

.NET 10 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, 10
.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, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1