EnumStringAttribute Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour