CategoryAttribute 建構函式

定義

初始化 CategoryAttribute 類別的新執行個體。

多載

CategoryAttribute()

使用分類名稱 Default 初始化 CategoryAttribute 類別的新執行個體。

CategoryAttribute(String)

使用指定的類別名稱來初始化 CategoryAttribute 類別的新執行個體。

CategoryAttribute()

來源:
CategoryAttribute.cs
來源:
CategoryAttribute.cs
來源:
CategoryAttribute.cs

使用分類名稱 Default 初始化 CategoryAttribute 類別的新執行個體。

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

適用於

CategoryAttribute(String)

來源:
CategoryAttribute.cs
來源:
CategoryAttribute.cs
來源:
CategoryAttribute.cs

使用指定的類別名稱來初始化 CategoryAttribute 類別的新執行個體。

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

參數

category
String

類別目錄的名稱。

備註

如果您為 category 參數提供的名稱是其中一個預先定義的類別名稱,則名稱會自動由 Category 屬性本地化。

如果您提供的名稱不是預先定義的類別名稱,而且您未覆寫 GetLocalizedString 方法來提供本地化的名稱,則不會本地化類別名稱。

適用於