Freigeben über


SelectList Constructor

Include Protected Members
Include Inherited Members

Initializes a new instance of the SelectList class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method SelectList(IEnumerable) Initializes a new instance of the SelectList class by using the specified items for the list.
Public method SelectList(IEnumerable, Object) Initializes a new instance of the SelectList class by using the specified items for the list and a selected value.
Public method SelectList(IEnumerable, String, String) Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, and the data text field.
Public method SelectList(IEnumerable, String, String, Object) Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, the data text field, and a selected value.

Top

See Also

Reference

SelectList Class

System.Web.Mvc Namespace