Share via


ModelMetadata.EnumGroupedDisplayNamesAndValues Property

Definition

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

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))

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