Share via


LocalizableAttribute(Boolean) Construtor

Definição

Inicializa uma nova instância da classe 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 se uma propriedade precisar ser localizada; caso contrário, false.

Exemplos

O exemplo a seguir marca uma propriedade como precisando ser localizada. Esse código cria um novo LocalizableAttribute, define seu valor como LocalizableAttribute.Yese o associa à propriedade .

   [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

Aplica-se a

Confira também