ModelMetadata.EnumGroupedDisplayNamesAndValues 屬性

定義

取得 中 UnderlyingOrModelType 所有 Enum 值的已排序和分組顯示名稱和值。

public:
 abstract property System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<Microsoft::AspNetCore::Mvc::ModelBinding::EnumGroupAndName, System::String ^>> ^ EnumGroupedDisplayNamesAndValues { System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<Microsoft::AspNetCore::Mvc::ModelBinding::EnumGroupAndName, System::String ^>> ^ get(); };
public abstract System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Microsoft.AspNetCore.Mvc.ModelBinding.EnumGroupAndName,string>> EnumGroupedDisplayNamesAndValues { get; }
public abstract System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Microsoft.AspNetCore.Mvc.ModelBinding.EnumGroupAndName,string>>? EnumGroupedDisplayNamesAndValues { get; }
member this.EnumGroupedDisplayNamesAndValues : seq<System.Collections.Generic.KeyValuePair<Microsoft.AspNetCore.Mvc.ModelBinding.EnumGroupAndName, string>>
Public MustOverride ReadOnly Property EnumGroupedDisplayNamesAndValues As IEnumerable(Of KeyValuePair(Of EnumGroupAndName, String))

屬性值

IEnumerable<T>KeyValuePair<TKey,TValue> 欄位群組、名稱和值之間的 Enum 對應之 。 如果 IsEnumfalse,則為 null

適用於