DefaultModelMetadata.EnumGroupedDisplayNamesAndValues Property

Definition

Gets the ordered and grouped display names and values of all Enum values in UnderlyingOrModelType.

public:
 virtual 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 override System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Microsoft.AspNetCore.Mvc.ModelBinding.EnumGroupAndName,string>> EnumGroupedDisplayNamesAndValues { get; }
public override 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 Overrides ReadOnly Property EnumGroupedDisplayNamesAndValues As IEnumerable(Of KeyValuePair(Of EnumGroupAndName, String))

Property Value

An IEnumerable<T> of KeyValuePair<TKey,TValue> of mappings between Enum field groups, names and values. null if IsEnum is false.

Applies to