Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Property Attributes
Message
De
12/01/2005 10:29:43
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Property Attributes
Divers
Thread ID:
00976414
Message ID:
00976414
Vues:
42
Hi,
I new in .NET.
I looking for way to create multilanguage property description.
Example
Public Class manufacture
    Private _ManufactureName As String

    <Description(" Here would be good to use GetString(Key) "), Category("Base"), Localizable(True)> _
    Property ManufactureName() As String
        Get
            ManufactureName = _ManufactureName
        End Get
        Set(ByVal Value As String)
            _ManufactureName = Value
        End Set
    End Property
End Class
Is it possible create multilanguage description using code

Dim loResources As System.Resources.ResourceManager
loResources = New Resources.ResourceManager ("PropGrid.StringLibrary", [Assembly].GetExecutingAssembly())
Dim ci As CultureInfo = Thread.CurrentThread.CurrentCulture

How can I use external call GetString for Attributes in this case?
loResources.GetString("MAN_DESCR", ci)
How Attribute definition will looks in code?

Thanks
Denis
Répondre
Fil
Voir

Click here to load this message in the networking platform