ParenthesizePropertyNameAttribute Constructors

Definition

Initializes a new instance of the ParenthesizePropertyNameAttribute class that indicates that the associated property should not be shown with parentheses.

Overloads

ParenthesizePropertyNameAttribute()

Initializes a new instance of the ParenthesizePropertyNameAttribute class that indicates that the associated property should not be shown with parentheses.

ParenthesizePropertyNameAttribute(Boolean)

Initializes a new instance of the ParenthesizePropertyNameAttribute class, using the specified value to indicate whether the attribute is displayed with parentheses.

ParenthesizePropertyNameAttribute()

Source:
ParenthesizePropertyNameAttribute.cs
Source:
ParenthesizePropertyNameAttribute.cs
Source:
ParenthesizePropertyNameAttribute.cs

Initializes a new instance of the ParenthesizePropertyNameAttribute class that indicates that the associated property should not be shown with parentheses.

C#
public ParenthesizePropertyNameAttribute();

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.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

ParenthesizePropertyNameAttribute(Boolean)

Source:
ParenthesizePropertyNameAttribute.cs
Source:
ParenthesizePropertyNameAttribute.cs
Source:
ParenthesizePropertyNameAttribute.cs

Initializes a new instance of the ParenthesizePropertyNameAttribute class, using the specified value to indicate whether the attribute is displayed with parentheses.

C#
public ParenthesizePropertyNameAttribute(bool needParenthesis);

Parameters

needParenthesis
Boolean

true if the name should be enclosed in parentheses; otherwise, false.

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.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