GetLocalizedValue 메서드
Gets a String containing the localized value of the LocalizablePropertyDescriptionAttribute.
네임스페이스: Microsoft.SqlServer.Dts.Runtime.Localization
어셈블리: Microsoft.SqlServer.ManagedDTS.dll의 Microsoft.SqlServer.ManagedDTS
구문
‘선언
Public Function GetLocalizedValue As String
‘사용 방법
Dim instance As LocalizablePropertyDescriptionAttribute
Dim returnValue As String
returnValue = instance.GetLocalizedValue()
public string GetLocalizedValue()
public:
String^ GetLocalizedValue()
member GetLocalizedValue : unit -> string
public function GetLocalizedValue() : String
반환 값
형식: System. . :: . .String
A String containing the localized value of the LocalizablePropertyDescriptionAttribute.
예제
The following code example uses the GetLocalizedValue method to return a localized version of the string to be used as the displayed name in a user interface.
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();
}
}