LocalizableAttribute(Boolean) Constructor

Definición

Inicializa una nueva instancia de la clase LocalizableAttribute.

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

Parámetros

isLocalizable
Boolean

true si se debe traducir una propiedad; en caso contrario, false.

Ejemplos

En el ejemplo siguiente se marca una propiedad según sea necesario localizar. Este código crea un nuevo LocalizableAttribute, establece su valor LocalizableAttribute.Yesen y lo enlaza a la propiedad .

   [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.
      return 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

Se aplica a

Consulte también