LocalizableAttribute(Boolean) 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
LocalizableAttribute 클래스의 새 인스턴스를 초기화합니다.
public:
LocalizableAttribute(bool isLocalizable);
public LocalizableAttribute(bool isLocalizable);
new System.ComponentModel.LocalizableAttribute : bool -> System.ComponentModel.LocalizableAttribute
Public Sub New (isLocalizable As Boolean)
매개 변수
- isLocalizable
- Boolean
true속성을 지역화해야 하는 경우 그렇지 않으면 . false
예제
다음 예제에서는 속성을 지역화해야 하는 것으로 표시합니다. 이 코드는 새 LocalizableAttribute값을 만들고, 해당 값을 LocalizableAttribute.Yes설정하며, 속성에 바인딩합니다.
[Localizable(true)]
int get()
{
// Insert code here.
return 0;
}
void set( int value )
{
// Insert code here.
}
}
[Localizable(true)]
public int MyProperty
{
get =>
// Insert code here.
0;
set
{
// Insert code here.
}
}
<Localizable(True)> _
Public Property MyProperty() As Integer
Get
' Insert code here.
Return 0
End Get
Set
' Insert code here.
End Set
End Property