BindableAttribute 생성자

정의

BindableAttribute 클래스의 새 인스턴스를 초기화합니다.

오버로드

BindableAttribute(Boolean)

부울 값을 사용하여 BindableAttribute 클래스의 새 인스턴스를 초기화합니다.

BindableAttribute(BindableSupport)

BindableSupport 값 중 하나를 사용하여 BindableAttribute 클래스의 새 인스턴스를 초기화합니다.

BindableAttribute(Boolean, BindingDirection)

BindableAttribute 클래스의 새 인스턴스를 초기화합니다.

BindableAttribute(BindableSupport, BindingDirection)

BindableAttribute 클래스의 새 인스턴스를 초기화합니다.

BindableAttribute(Boolean)

Source:
BindableAttribute.cs
Source:
BindableAttribute.cs
Source:
BindableAttribute.cs

부울 값을 사용하여 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. 로 설정된 false로 표시된 속성의 BindableAttribute 경우 값은 입니다No. 따라서 코드에서 이 특성의 값을 검사 특성을 또는 BindableAttribute.NoBindableAttribute.Yes 지정해야 합니다.

추가 정보

적용 대상

BindableAttribute(BindableSupport)

Source:
BindableAttribute.cs
Source:
BindableAttribute.cs
Source:
BindableAttribute.cs

BindableSupport 값 중 하나를 사용하여 BindableAttribute 클래스의 새 인스턴스를 초기화합니다.

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. 로 설정된 false로 표시된 속성의 BindableAttribute 경우 값은 입니다No. 따라서 코드에서 이 특성의 값을 검사 특성을 또는 BindableAttribute.NoBindableAttribute.Yes 지정해야 합니다.

추가 정보

적용 대상

BindableAttribute(Boolean, BindingDirection)

Source:
BindableAttribute.cs
Source:
BindableAttribute.cs
Source:
BindableAttribute.cs

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)

Source:
BindableAttribute.cs
Source:
BindableAttribute.cs
Source:
BindableAttribute.cs

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 값 중 하나입니다.

적용 대상