Share via


CategoryAttribute Constructeurs

Définition

Initialise une nouvelle instance de la classe CategoryAttribute.

Surcharges

CategoryAttribute()

Initialise une nouvelle instance de la classe CategoryAttribute à l'aide du nom de catégorie Par défaut.

CategoryAttribute(String)

Initialise une nouvelle instance de la classe CategoryAttribute à l'aide du nom de catégorie spécifié.

CategoryAttribute()

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

Initialise une nouvelle instance de la classe CategoryAttribute à l'aide du nom de catégorie Par défaut.

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

S’applique à

CategoryAttribute(String)

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

Initialise une nouvelle instance de la classe CategoryAttribute à l'aide du nom de catégorie spécifié.

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

Paramètres

category
String

Nom de la catégorie.

Remarques

Si le nom que vous fournissez pour le category paramètre est l’un des noms de catégorie prédéfinis, le nom est automatiquement localisé par la Category propriété .

Si le nom que vous fournissez n’est pas un nom de catégorie prédéfini et que vous ne remplacez pas la GetLocalizedString méthode pour fournir un nom localisé, le nom de catégorie ne sera pas localisé.

S’applique à