Partager via


MultiSelectList.GetEnumerator Method

Returns an enumerator that can be used to iterate through the collection.

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

Syntax

'Declaration
Public Overridable Function GetEnumerator As IEnumerator(Of SelectListItem)
public virtual IEnumerator<SelectListItem> GetEnumerator()
public:
virtual IEnumerator<SelectListItem^>^ GetEnumerator()

Return Value

Type: System.Collections.Generic.IEnumerator<SelectListItem>
An enumerator that can be used to iterate through the collection.

Implements

IEnumerable<T>.GetEnumerator()

See Also

Reference

MultiSelectList Class

System.Web.Mvc Namespace