ModelMetadata.EnumGroupedDisplayNamesAndValues Property

Definition

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

C#
public abstract System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Microsoft.AspNetCore.Mvc.ModelBinding.EnumGroupAndName,string>> EnumGroupedDisplayNamesAndValues { get; }
C#
public abstract System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Microsoft.AspNetCore.Mvc.ModelBinding.EnumGroupAndName,string>>? EnumGroupedDisplayNamesAndValues { get; }

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

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0