Freigeben über


ViewDataDictionary.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 Function GetEnumerator As IEnumerator(Of KeyValuePair(Of String, Object))
public IEnumerator<KeyValuePair<string, Object>> GetEnumerator()
public:
virtual IEnumerator<KeyValuePair<String^, Object^>>^ GetEnumerator() sealed

Return Value

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

Implements

IEnumerable<T>.GetEnumerator()

See Also

Reference

ViewDataDictionary Class

System.Web.Mvc Namespace