Op Englesch liesen Editéieren

Deelen iwwer


CategoryAttribute Constructors

Definition

Initializes a new instance of the CategoryAttribute class.

Overloads

CategoryAttribute()

Initializes a new instance of the CategoryAttribute class using the category name Default.

CategoryAttribute(String)

Initializes a new instance of the CategoryAttribute class using the specified category name.

CategoryAttribute()

Source:
CategoryAttribute.cs
Source:
CategoryAttribute.cs
Source:
CategoryAttribute.cs

Initializes a new instance of the CategoryAttribute class using the category name Default.

C#
public CategoryAttribute();

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.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

CategoryAttribute(String)

Source:
CategoryAttribute.cs
Source:
CategoryAttribute.cs
Source:
CategoryAttribute.cs

Initializes a new instance of the CategoryAttribute class using the specified category name.

C#
public CategoryAttribute(string category);

Parameters

category
String

The name of the category.

Remarks

If the name you provide for the category parameter is one of the predefined category names, the name will be automatically localized by the Category property.

If the name you provide is not a predefined category name, and you do not override the GetLocalizedString method to provide a localized name, the category name will not be localized.

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.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