Share via


Sessions.CloseSession Method

Closes the session and if it was the active session, assigns another session to be the active one.

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

Usage

'Usage
Dim instance As Sessions
Dim session As Session
Dim forceClose As Boolean
Dim returnValue As Boolean

returnValue = instance.CloseSession(session, forceClose)

Syntax

'Declaration
Public Overridable Function CloseSession ( _
    session As Session, _
    forceClose As Boolean _
) As Boolean
public virtual bool CloseSession (
    Session session,
    bool forceClose
)
public:
virtual bool CloseSession (
    Session^ session, 
    bool forceClose
)
public boolean CloseSession (
    Session session, 
    boolean forceClose
)
public function CloseSession (
    session : Session, 
    forceClose : boolean
) : boolean

Parameters

  • session
    Specifies the session object to close.
  • forceClose
    True if the session should be forced to close; otherwise false.

Return Value

Type: Boolean
True if the session was closed successfully; otherwise false.

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

Sessions Class
Sessions Members
Microsoft.Uii.Csr Namespace

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