Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SelectList Constructor (IEnumerable, String, String)

SelectList Constructor (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.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

new : 
        items:IEnumerable * 
        dataValueField:string * 
        dataTextField:string -> SelectList

Parameters

items
Type: System.Collections.IEnumerable

The items.

dataValueField
Type: System.String

The data value field.

dataTextField
Type: System.String

The data text field.

Show:
© 2015 Microsoft