IHttpSessionState::GetEnumerator Method ()
.NET Framework (current version)
Returns an enumerator that can be used to read all the session-state item values in the current session.
Assembly: System.Web (in System.Web.dll)
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: