共用方式為


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

適用於