This documentation is archived and is not being maintained.

CategoryAttribute.GetLocalizedString Method

Looks up the localized name of the specified category.

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

protected virtual string GetLocalizedString (
	string value
protected String GetLocalizedString (
	String value
protected function GetLocalizedString (
	value : String
) : String
Not applicable.



The identifer for the category to look up.

Return Value

The localized name of the category, or a null reference (Nothing in Visual Basic) if a localized name does not exist.

The Category property calls this method the first time it is accessed to look up the localized name for the specified category.

Notes to Inheritors: Override this method to add your own localized names to categories. If a localized string is available for the given value, the method should return it. Otherwise, call the base class's GetLocalizedString method to let the base class localize the string.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0