Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MultiSelectList Class

 

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

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

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

public class MultiSelectList : IEnumerable<SelectListItem>, IEnumerable

NameDescription
System_CAPS_pubmethodMultiSelectList(IEnumerable)

Initializes a new instance of the MultiSelectList class by using the specified items to include in the list.

System_CAPS_pubmethodMultiSelectList(IEnumerable, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the specified items to include in the list and the selected values.

System_CAPS_pubmethodMultiSelectList(IEnumerable, IEnumerable, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the selected values, the disabled values.

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

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

System_CAPS_pubmethodMultiSelectList(IEnumerable, String, String, IEnumerable, 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, the selected values, and the disabled values.

System_CAPS_pubmethodMultiSelectList(IEnumerable, String, String, String)

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 data group field.

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

System_CAPS_pubmethodMultiSelectList(IEnumerable, String, String, String, IEnumerable, 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, the data group field, the selected values, and the disabled values.

System_CAPS_pubmethodMultiSelectList(IEnumerable, String, String, String, IEnumerable, IEnumerable, 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, the data group field, the selected values, the disabled values, and the disabled groups.

NameDescription
System_CAPS_pubpropertyDataGroupField

Gets the data group field.

System_CAPS_pubpropertyDataTextField

Gets or sets the data text field.

System_CAPS_pubpropertyDataValueField

Gets or sets the data value field.

System_CAPS_pubpropertyDisabledGroups

Gets the disabled groups.

System_CAPS_pubpropertyDisabledValues

Gets the disabled values.

System_CAPS_pubpropertyItems

Gets or sets the items in the list.

System_CAPS_pubpropertySelectedValues

Gets or sets the selected values.

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.

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.

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