Gets a String containing the localized value of the LocalizablePropertyDescriptionAttribute.
네임스페이스: Microsoft.SqlServer.Dts.Runtime.Localization
어셈블리: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)
구문
‘선언
Public Function GetLocalizedValue As String
public string GetLocalizedValue ()
public:
String^ GetLocalizedValue ()
public String GetLocalizedValue ()
public function GetLocalizedValue () : 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();
}
}
스레드 보안
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
플랫폼
개발 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
대상 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
참고 항목
참조
LocalizablePropertyDescriptionAttribute Class
LocalizablePropertyDescriptionAttribute Members
Microsoft.SqlServer.Dts.Runtime.Localization Namespace