ModelMetadata.EnumNamesAndValues 属性

定义

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

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

属性值

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

适用于