Share via


EnumStringAttribute Classe

Définition

Représente l’attribut personnalisé pour les champs dans une énumération générée.

[System.AttributeUsage(System.AttributeTargets.Field, AllowMultiple=false, Inherited=false)]
public sealed class EnumStringAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field, AllowMultiple=false, Inherited=false)>]
type EnumStringAttribute = class
    inherit Attribute
Public NotInheritable Class EnumStringAttribute
Inherits Attribute
Héritage
EnumStringAttribute
Attributs

Constructeurs

EnumStringAttribute(String)

Initialise une nouvelle instance de la classe EnumStringAttribute à l’aide de la chaîne de texte fournie.

Propriétés

Value

Obtient la chaîne de texte dans l’attribut personnalisé.

S’applique à