|
|
Title | Use the Localizable attribute in VB .NET |
Description | This example shows how to use the Localizable attribute in VB .NET. |
Keywords | Localizable, LocalizableAttribute, attribute, VB.NET, property |
Categories | VB.NET |
|
|
The Localizable attribute indicates whether a poroperty should be localizable. If this is True, then localized values are automatically stored in the appropriate resource files. The default is False.
In this example, the Employee class's FirstName property is localizable but its LastName property is not. If you localize the application, separate values are stored for FirstName in the different language resource files but only one value is stored for LastName.
|
|
Public Class Employee
...
<Localizable(True)> _
Public Property FirstName() As String
...
End Property
<Localizable(False)> _
Public Property LastName() As String
...
End Property
...
End Class
|
|
|
|
|
|