EnumGroupAndName Struct

An abstraction used when grouping enum values for Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata.EnumGroupedDisplayNamesAndValues.

Namespace
Microsoft.AspNetCore.Mvc.ModelBinding
Assemblies
  • Microsoft.AspNetCore.Mvc.Abstractions

Syntax

public struct EnumGroupAndName
struct Microsoft.AspNetCore.Mvc.ModelBinding.EnumGroupAndName

Constructors

EnumGroupAndName(System.String, System.String)

Initializes a new instance of the EnumGroupAndName structure.

Arguments:
  • group (System.String) – The group name.
  • name (System.String) – The name.
public EnumGroupAndName(string group, string name)

Properties

Microsoft.AspNetCore.Mvc.ModelBinding.EnumGroupAndName.Group

Gets the Group name.

Return type:System.String
public string Group { get; }
Microsoft.AspNetCore.Mvc.ModelBinding.EnumGroupAndName.Name

Gets the name.

Return type:System.String
public string Name { get; }