DefaultModelMetadata.EnumNamesAndValues 属性

定义

获取 中UnderlyingOrModelType所有Enum值的名称和值。

public:
 virtual property System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::String ^> ^ EnumNamesAndValues { System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::String ^> ^ get(); };
public override System.Collections.Generic.IReadOnlyDictionary<string,string> EnumNamesAndValues { get; }
public override System.Collections.Generic.IReadOnlyDictionary<string,string>? EnumNamesAndValues { get; }
member this.EnumNamesAndValues : System.Collections.Generic.IReadOnlyDictionary<string, string>
Public Overrides ReadOnly Property EnumNamesAndValues As IReadOnlyDictionary(Of String, String)

属性值

字段 IReadOnlyDictionary<TKey,TValue> 名称和值之间的 Enum 映射的 。 如果 IsEnumfalse,则返回 null

适用于