MemberDescriptor Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the MemberDescriptor class.
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. |
- 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
.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 |
- 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
.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 |
- 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
.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 |
- 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.
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: