Udostępnij za pośrednictwem


Session.GetEnumerator Method

Returns an enumerator that iterates through the collection

Namespace: Microsoft.Uii.Csr
Assembly: Microsoft.Uii.Csr.Core (in Microsoft.Uii.Csr.Core.dll)

Usage

'Usage
Dim instance As Session
Dim returnValue As IEnumerator

returnValue = instance.GetEnumerator

Syntax

'Declaration
Public Function GetEnumerator As IEnumerator
public IEnumerator GetEnumerator ()
public:
virtual IEnumerator^ GetEnumerator () sealed
public final IEnumerator GetEnumerator ()
public final function GetEnumerator () : IEnumerator

Return Value

IEnumerator interface reference.

Remarks

This is what is used for 'foreach ( IHostedApplication app in session )'

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

Session Class
Session Members
Microsoft.Uii.Csr Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.