LocalizablePropertyCategoryAttribute(Type, String) 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 타입과 속성 이름을 사용하여 클래스의 LocalizablePropertyCategoryAttribute 새 인스턴스를 초기화합니다.
public:
LocalizablePropertyCategoryAttribute(Type ^ type, System::String ^ propertyName);
public LocalizablePropertyCategoryAttribute(Type type, string propertyName);
new Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyCategoryAttribute : Type * string -> Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyCategoryAttribute
Public Sub New (type As Type, propertyName As String)
매개 변수
- type
- Type
가 참조하는 propertyName속성을 포함하는 타입 이름입니다.
- propertyName
- String
에 있는 type 속성의 이름이 국소화된 속성 범주를 반환합니다.
예제
다음 코드 예시는 이 속성을 구현한 클래스를 보여줍니다.
public class MyTask : Task
{
[LocalizablePropertyCategory (typeof(LocalizedStrings),"MyGeneralCategory")]
public string MyProperty
{ get; set; }
}
internal class LocalizedStrings
{
public static string MyGeneralCategory
{
get
{
// Return the localized string.
}
}
}
설명
속성은 정적이어야 하며, 를 반환해야 한다 String.