ערוך

שתף באמצעות


CategoryAttribute.GetLocalizedString(String) Method

Definition

Looks up the localized name of the specified category.

protected:
 virtual System::String ^ GetLocalizedString(System::String ^ value);
protected virtual string? GetLocalizedString (string value);
protected virtual string GetLocalizedString (string value);
abstract member GetLocalizedString : string -> string
override this.GetLocalizedString : string -> string
Protected Overridable Function GetLocalizedString (value As String) As String

Parameters

value
String

The identifer for the category to look up.

Returns

The localized name of the category, or null if a localized name does not exist.

Remarks

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(String) method to let the base class localize the string.

Applies to