Export (0) Print
Expand All

MultiSelectList Class

.NET Framework 4

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.

  NameDescription
Public methodMultiSelectList(IEnumerable)Initializes a new instance of the MultiSelectList class by using the specified items to include in the list.
Public methodMultiSelectList(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 methodMultiSelectList(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 methodMultiSelectList(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

  NameDescription
Public propertyDataTextFieldGets or sets the data text field.
Public propertyDataValueFieldGets or sets the data value field.
Public propertyItemsGets or sets the items in the list.
Public propertySelectedValuesGets or sets the selected values.
Top

  NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator that can be used to iterate through the collection.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns 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.

Community Additions

ADD
Show:
© 2014 Microsoft