Export (0) Print
Expand All

SessionStateItemCollection.GetEnumerator Method

Returns an enumerator that can be used to read all the key names in the collection.

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

abstract GetEnumerator : unit -> IEnumerator  
override GetEnumerator : unit -> IEnumerator

Return Value

Type: System.Collections.IEnumerator
An IEnumerator that can iterate through the variable names in the session-state collection.

Implements

IEnumerable.GetEnumerator()

The following code example gets the variable names in a SessionStateItemCollection collection using the GetEnumerator method.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft