Muokkaa

Jaa


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.

public:
 CategoryAttribute();
public CategoryAttribute ();
Public Sub New ()

Applies to

CategoryAttribute(String)

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

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

public:
 CategoryAttribute(System::String ^ category);
public CategoryAttribute (string category);
new System.ComponentModel.CategoryAttribute : string -> System.ComponentModel.CategoryAttribute
Public Sub New (category As String)

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