EnumStringAttribute クラス

定義

生成された列挙型のフィールドのカスタム属性を表します。

[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
継承
EnumStringAttribute
属性

コンストラクター

EnumStringAttribute(String)

指定されたテキスト文字列を使用して、EnumStringAttribute クラスの新しいインスタンスを初期化します。

プロパティ

Value

カスタム属性のテキスト文字列を取得します。

適用対象