CategoryAttribute Constructor (String)


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

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public CategoryAttribute(
	string category


Type: System.String

The name of the category.

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.

.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top