Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SelectList Class
Collapse the table of content
Expand the table of content

SelectList Class

 

Represents a list that lets users select one item.

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


public class SelectList : MultiSelectList

NameDescription
System_CAPS_pubmethodSelectList(IEnumerable)

Initializes a new instance of the SelectList class by using the specified items for the list.

System_CAPS_pubmethodSelectList(IEnumerable, Object)

Initializes a new instance of the SelectList class by using the specified items for the list and a selected value.

System_CAPS_pubmethodSelectList(IEnumerable, Object, IEnumerable)

Initializes a new instance of the SelectList class by using the specified items for the list, the selected value, and the disabled values.

System_CAPS_pubmethodSelectList(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.

System_CAPS_pubmethodSelectList(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.

System_CAPS_pubmethodSelectList(IEnumerable, String, String, Object, IEnumerable)

Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, the data text field, the selected value, and the disabled values.

System_CAPS_pubmethodSelectList(IEnumerable, String, 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, the data group field, and the selected value.

System_CAPS_pubmethodSelectList(IEnumerable, String, String, String, Object, IEnumerable)

Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, the data text field, the data group field, the selected value, and the disabled values.

System_CAPS_pubmethodSelectList(IEnumerable, String, String, String, Object, IEnumerable, IEnumerable)

Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, the data text field, the data group field. the selected value, the disabled values, and the disabled groups.

NameDescription
System_CAPS_pubpropertyDataGroupField

Gets the data group field.(Inherited from MultiSelectList.)

System_CAPS_pubpropertyDataTextField

Gets or sets the data text field.(Inherited from MultiSelectList.)

System_CAPS_pubpropertyDataValueField

Gets or sets the data value field.(Inherited from MultiSelectList.)

System_CAPS_pubpropertyDisabledGroups

Gets the disabled groups.(Inherited from MultiSelectList.)

System_CAPS_pubpropertyDisabledValues

Gets the disabled values.(Inherited from MultiSelectList.)

System_CAPS_pubpropertyItems

Gets or sets the items in the list.(Inherited from MultiSelectList.)

System_CAPS_pubpropertySelectedValue

Gets the list value that was selected by the user.

System_CAPS_pubpropertySelectedValues

Gets or sets the selected values.(Inherited from MultiSelectList.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that can be used to iterate through the collection.(Inherited from MultiSelectList.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Returns an enumerator can be used to iterate through a collection.(Inherited from MultiSelectList.)

NameDescription
System_CAPS_pubmethodAsSerializable<SelectListItem>()

Convenience API to allow an IEnumerable{T} (such as returned by Linq2Sql) to be serialized by DataContractSerilizer.(Defined by IEnumerableExtensions.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2015 Microsoft