IHttpSessionState::GetEnumerator Method ()

 

Returns an enumerator that can be used to read all the session-state item values in the current session.

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

IEnumerator^ GetEnumerator()

Return Value

Type: System.Collections::IEnumerator^

An IEnumerator that can iterate through the values in the session-state item collection.

The following code example implements the GetEnumerator method of the IHttpSessionState interface to return an enumerator for the internal session-state item collection.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: