LocalizablePropertyDescriptionAttribute.GetLocalizedValue 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
의 국소화된 값을 포함하는 문자열을 얻습니다.LocalizablePropertyDescriptionAttribute
public:
System::String ^ GetLocalizedValue();
public string GetLocalizedValue();
member this.GetLocalizedValue : unit -> string
Public Function GetLocalizedValue () As String
반품
의 국소화된 값을 포함하는 문자열입니다.LocalizablePropertyDescriptionAttribute
예제
다음 코드 예시는 사용자 인터페이스에서 표시되는 이름으로 사용할 문자열의 현지화된 버전을 반환하는 메서드를 사용합니다 GetLocalizedValue .
public override string DisplayLocPropertyName
{
{
AttributeCollection attributes = this.Attributes;
if ( null == attributes )
// Your code here.
LocalizablePropertyDescriptionAttribute localizablePropDescAttr = attributes[ typeof ( LocalizablePropertyDescriptionAttribute ) ] as LocalizablePropertyDescriptionAttribute;
if ( null == localizablePropDescAttr)
// Return your data or value.
else
// Return the localized description.
return localizablePropertyDescAttribute.GetLocalizedValue();
}
}