언어

LocalizablePropertyDescriptionAttribute.GetLocalizedValue 메서드

정의

의 국소화된 값을 포함하는 문자열을 얻습니다.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();  
    }  
}  

적용 대상