BindableAttribute Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy BindableAttribute.

Przeciążenia

BindableAttribute(Boolean)

Inicjuje BindableAttribute nowe wystąpienie klasy z wartością logiczną.

BindableAttribute(BindableSupport)

Inicjuje BindableAttribute nowe wystąpienie klasy z jedną z BindableSupport wartości.

BindableAttribute(Boolean, BindingDirection)

Inicjuje nowe wystąpienie klasy BindableAttribute.

BindableAttribute(BindableSupport, BindingDirection)

Inicjuje nowe wystąpienie klasy BindableAttribute.

BindableAttribute(Boolean)

Źródło:
BindableAttribute.cs
Źródło:
BindableAttribute.cs
Źródło:
BindableAttribute.cs

Inicjuje BindableAttribute nowe wystąpienie klasy z wartością logiczną.

public:
 BindableAttribute(bool bindable);
public BindableAttribute (bool bindable);
new System.ComponentModel.BindableAttribute : bool -> System.ComponentModel.BindableAttribute
Public Sub New (bindable As Boolean)

Parametry

bindable
Boolean

true do używania właściwości do powiązania; w przeciwnym razie , false.

Przykłady

Poniższy przykład kodu oznacza właściwość odpowiednio powiązaną z danymi. Ten przykład kodu tworzy nowy BindableAttributeelement , ustawia jego wartość na BindableAttribute.Yes, i wiąże ją z właściwością.

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

Uwagi

Gdy oznaczysz właściwość z ustawioną BindableAttribute wartością true, wartość tego atrybutu jest ustawiona na stały element członkowski Yes. Dla właściwości oznaczonej wartością ustawioną na BindableAttributefalsewartość , wartość to No. W związku z tym, aby sprawdzić wartość tego atrybutu w kodzie, należy określić atrybut jako BindableAttribute.Yes lub BindableAttribute.No.

Zobacz też

Dotyczy

BindableAttribute(BindableSupport)

Źródło:
BindableAttribute.cs
Źródło:
BindableAttribute.cs
Źródło:
BindableAttribute.cs

Inicjuje BindableAttribute nowe wystąpienie klasy z jedną z BindableSupport wartości.

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)

Parametry

flags
BindableSupport

Jedna z BindableSupport wartości.

Przykłady

Poniższy przykład kodu oznacza właściwość odpowiednio powiązaną z danymi. Ten przykład kodu tworzy nowy BindableAttributeelement , ustawia jego wartość na BindableAttribute.Yes, i wiąże ją z właściwością.


   [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

Uwagi

Gdy oznaczysz właściwość z ustawioną BindableAttribute wartością true, wartość tego atrybutu jest ustawiona na stały element członkowski Yes. Dla właściwości oznaczonej wartością ustawioną na BindableAttributefalsewartość , wartość to No. W związku z tym, aby sprawdzić wartość tego atrybutu w kodzie, należy określić atrybut jako BindableAttribute.Yes lub BindableAttribute.No.

Zobacz też

Dotyczy

BindableAttribute(Boolean, BindingDirection)

Źródło:
BindableAttribute.cs
Źródło:
BindableAttribute.cs
Źródło:
BindableAttribute.cs

Inicjuje nowe wystąpienie klasy 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)

Parametry

bindable
Boolean

true do używania właściwości do powiązania; w przeciwnym razie , false.

direction
BindingDirection

Jedna z BindingDirection wartości.

Dotyczy

BindableAttribute(BindableSupport, BindingDirection)

Źródło:
BindableAttribute.cs
Źródło:
BindableAttribute.cs
Źródło:
BindableAttribute.cs

Inicjuje nowe wystąpienie klasy 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)

Parametry

flags
BindableSupport

Jedna z BindableSupport wartości.

direction
BindingDirection

Jedna z BindingDirection wartości.

Dotyczy