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)

Function GetEnumerator As IEnumerator

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.

Public Function GetEnumerator() As IEnumerator Implements IHttpSessionState.GetEnumerator
    Return pSessionItems.GetEnumerator()
End Function

.NET Framework
Available since 2.0
Return to top
Show: