BindableAttribute 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
BindableAttribute 클래스의 새 인스턴스를 초기화합니다.
오버로드
| Name | Description |
|---|---|
| BindableAttribute(Boolean) |
부울 값을 사용하여 클래스의 BindableAttribute 새 인스턴스를 초기화합니다. |
| BindableAttribute(BindableSupport) |
값 중 하나를 사용하여 클래스의 BindableAttribute 새 인스턴스를 초기화합니다 BindableSupport . |
| BindableAttribute(Boolean, BindingDirection) |
BindableAttribute 클래스의 새 인스턴스를 초기화합니다. |
| BindableAttribute(BindableSupport, BindingDirection) |
BindableAttribute 클래스의 새 인스턴스를 초기화합니다. |
BindableAttribute(Boolean)
부울 값을 사용하여 클래스의 BindableAttribute 새 인스턴스를 초기화합니다.
public:
BindableAttribute(bool bindable);
public BindableAttribute(bool bindable);
new System.ComponentModel.BindableAttribute : bool -> System.ComponentModel.BindableAttribute
Public Sub New (bindable As Boolean)
매개 변수
- bindable
- Boolean
true바인딩에 속성을 사용하려면 그렇지 않으면 . false
예제
다음 코드 예제에서는 데이터를 바인딩하는 데 적합한 속성을 표시합니다. 이 코드 예제에서는 새 BindableAttribute값을 만들고 해당 값을 설정하며 BindableAttribute.Yes속성에 바인딩합니다.
public:
[property:Bindable(true)]
property int MyProperty
{
int get()
{
// Insert code here.
return 0;
}
void set( int theValue )
{
// Insert code here.
}
}
[Bindable(true)]
public int MyProperty {
get {
// Insert code here.
return 0;
}
set {
// Insert code here.
}
}
<Bindable(true)> _
Public Property MyProperty As Integer
Get
' Insert code here.
Return 0
End Get
Set
' Insert code here.
End Set
End Property
설명
설정된 BindableAttribute속성을 true 표시하면 이 특성의 값이 상수 멤버Yes로 설정됩니다. 집합BindableAttribute으로 표시된 속성의 false 경우 값은 .입니다No. 따라서 코드에서 이 특성의 값을 확인하려면 특성을 다음과 같이 BindableAttribute.YesBindableAttribute.No지정해야 합니다.
추가 정보
적용 대상
BindableAttribute(BindableSupport)
값 중 하나를 사용하여 클래스의 BindableAttribute 새 인스턴스를 초기화합니다 BindableSupport .
public:
BindableAttribute(System::ComponentModel::BindableSupport flags);
public BindableAttribute(System.ComponentModel.BindableSupport flags);
new System.ComponentModel.BindableAttribute : System.ComponentModel.BindableSupport -> System.ComponentModel.BindableAttribute
Public Sub New (flags As BindableSupport)
매개 변수
- flags
- BindableSupport
값 중 BindableSupport 하나입니다.
예제
다음 코드 예제에서는 데이터를 바인딩하는 데 적합한 속성을 표시합니다. 이 코드 예제에서는 새 BindableAttribute값을 만들고 해당 값을 설정하며 BindableAttribute.Yes속성에 바인딩합니다.
[Bindable(BindableSupport::Yes)]
int get()
{
// Insert code here.
return 0;
}
void set( int theValue )
{
// Insert code here.
}
}
[Bindable(BindableSupport.Yes)]
public int MyProperty {
get {
// Insert code here.
return 0;
}
set {
// Insert code here.
}
}
<Bindable(BindableSupport.Yes)> _
Public Property MyProperty As Integer
Get
' Insert code here.
Return 0
End Get
Set
' Insert code here.
End Set
End Property
설명
설정된 BindableAttribute속성을 true 표시하면 이 특성의 값이 상수 멤버Yes로 설정됩니다. 집합BindableAttribute으로 표시된 속성의 false 경우 값은 .입니다No. 따라서 코드에서 이 특성의 값을 확인하려면 특성을 다음과 같이 BindableAttribute.YesBindableAttribute.No지정해야 합니다.
추가 정보
적용 대상
BindableAttribute(Boolean, BindingDirection)
BindableAttribute 클래스의 새 인스턴스를 초기화합니다.
public:
BindableAttribute(bool bindable, System::ComponentModel::BindingDirection direction);
public BindableAttribute(bool bindable, System.ComponentModel.BindingDirection direction);
new System.ComponentModel.BindableAttribute : bool * System.ComponentModel.BindingDirection -> System.ComponentModel.BindableAttribute
Public Sub New (bindable As Boolean, direction As BindingDirection)
매개 변수
- bindable
- Boolean
true바인딩에 속성을 사용하려면 그렇지 않으면 . false
- direction
- BindingDirection
값 중 BindingDirection 하나입니다.
적용 대상
BindableAttribute(BindableSupport, BindingDirection)
BindableAttribute 클래스의 새 인스턴스를 초기화합니다.
public:
BindableAttribute(System::ComponentModel::BindableSupport flags, System::ComponentModel::BindingDirection direction);
public BindableAttribute(System.ComponentModel.BindableSupport flags, System.ComponentModel.BindingDirection direction);
new System.ComponentModel.BindableAttribute : System.ComponentModel.BindableSupport * System.ComponentModel.BindingDirection -> System.ComponentModel.BindableAttribute
Public Sub New (flags As BindableSupport, direction As BindingDirection)
매개 변수
- flags
- BindableSupport
값 중 BindableSupport 하나입니다.
- direction
- BindingDirection
값 중 BindingDirection 하나입니다.