Selectmenu(string name, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> items)

Returns a selectmenu with the specified form field name and items.

Parameters

name The name of the form field.
items The items in the list.

Selectmenu(string name, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> items, object htmlAttributes)

Returns a selectmenu with the specified form field name, items and HTML attributes.

Parameters

name The name of the form field.
items The items in the list.
htmlAttributes An object that contains the HTML attributes.

Selectmenu(string name, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> items, string optionLabel)

Returns a selectmenu with the specified form field name, items and option label.

Parameters

name The name of the form field.
items The items in the list.
optionLabel The text of the default item.

Selectmenu(string name, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> items, string optionLabel, object htmlAttributes)

Returns a selectmenu with the specified form field name, items, option label and HTML attributes.

Parameters

name The name of the form field.
items The items in the list.
optionLabel The text of the default item.
htmlAttributes An object that contains the HTML attributes.

SelectmenuFor<TProperty>(System.Linq.Expressions.Expression<System.Func<TModel, TProperty>> expression, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> items)

Returns a selectmenu initialized using the specified items and the property represented by the specified expression.

Type Parameters

TProperty The type of the property.

Parameters

expression The expression that identifies the property.
items The items in the list.

SelectmenuFor<TProperty>(System.Linq.Expressions.Expression<System.Func<TModel, TProperty>> expression, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> items, object htmlAttributes)

Returns a selectmenu initialized using the specified items, HTML attributes and the property represented by the specified expression.

Type Parameters

TProperty The type of the property.

Parameters

expression The expression that identifies the property.
items The items in the list.
htmlAttributes An object that contains the HTML attributes.

SelectmenuFor<TProperty>(System.Linq.Expressions.Expression<System.Func<TModel, TProperty>> expression, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> items, string optionLabel)

Returns a selectmenu initialized using the specified items, option label and the property represented by the specified expression.

Type Parameters

TProperty The type of the property.

Parameters

expression The expression that identifies the property.
items The items in the list.
optionLabel The text of the default item.

SelectmenuFor<TProperty>(System.Linq.Expressions.Expression<System.Func<TModel, TProperty>> expression, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem> items, string optionLabel, object htmlAttributes)

Returns a selectmenu initialized using the specified items, option label, HTML attributes and the property represented by the specified expression.

Type Parameters

TProperty The type of the property.

Parameters

expression The expression that identifies the property.
items The items in the list.
optionLabel The text of the default item.
htmlAttributes An object that contains the HTML attributes.