This topic has not yet been rated - Rate this topic

MultiSelectList Class

Represents a list of items that users can select more than one item from.

System.Object
  System.Web.Mvc.MultiSelectList
    System.Web.Mvc.SelectList

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public class MultiSelectList : IEnumerable<SelectListItem>, 
	IEnumerable

The MultiSelectList type exposes the following members.

  Name Description
Public method MultiSelectList(IEnumerable) Initializes a new instance of the MultiSelectList class by using the specified items to include in the list.
Public method MultiSelectList(IEnumerable, IEnumerable) Initializes a new instance of the MultiSelectList class by using the specified items to include in the list and the selected values.
Public method MultiSelectList(IEnumerable, String, String) Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, and the data text field.
Public method MultiSelectList(IEnumerable, String, String, IEnumerable) Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, and the selected values.
Top
  Name Description
Public property DataTextField Gets or sets the data text field.
Public property DataValueField Gets or sets the data value field.
Public property Items Gets or sets the items in the list.
Public property SelectedValues Gets or sets the selected values.
Top
  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that can be used to iterate through the collection.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Top
  Name Description
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an enumerator can be used to iterate through a collection.
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)