IHtmlHelper.GetEnumSelectList IHtmlHelper.GetEnumSelectList IHtmlHelper.GetEnumSelectList Method

Definition

Overloads

GetEnumSelectList(Type) GetEnumSelectList(Type) GetEnumSelectList(Type)

Returns a select list for the given enumType.

GetEnumSelectList<TEnum>() GetEnumSelectList<TEnum>() GetEnumSelectList<TEnum>()

Returns a select list for the given TEnum.

GetEnumSelectList(Type) GetEnumSelectList(Type) GetEnumSelectList(Type)

Returns a select list for the given enumType.

public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem> GetEnumSelectList (Type enumType);
abstract member GetEnumSelectList : Type -> seq<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem>
Public Function GetEnumSelectList (enumType As Type) As IEnumerable(Of SelectListItem)

Parameters

enumType
Type Type Type

Type to generate a select list for.

Returns

An IEnumerable<T> containing the select list for the given enumType.

Exceptions

GetEnumSelectList<TEnum>() GetEnumSelectList<TEnum>() GetEnumSelectList<TEnum>()

Returns a select list for the given TEnum.

public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem> GetEnumSelectList<TEnum> () where TEnum : struct;
abstract member GetEnumSelectList : unit -> seq<Microsoft.AspNetCore.Mvc.Rendering.SelectListItem> (requires 'Enum : struct)
Public Function GetEnumSelectList(Of TEnum As Structure) () As IEnumerable(Of SelectListItem)

Type Parameters

TEnum

Type to generate a select list for.

Returns

An IEnumerable<T> containing the select list for the given TEnum.

Exceptions

Applies to