A Sandcastle Documented Class Library

# ISessionService TerminateAllSessions Method (Guid)

Terminates all sessions for the specified account.

Namespace: Dundas.BI.AccountServices
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    int TerminateAllSessions(
    	Guid accountId
    )

    Function TerminateAllSessions (
    	accountId As Guid
    ) As Integer

    int TerminateAllSessions(
    	Guid accountId
    )

    abstract TerminateAllSessions :
            accountId : Guid -> int

#### Parameters

accountId
  Type: System
  Guid
  The account ID.

#### Return Value

Type: Int32
The number of sessions which were deleted.
Exceptions

Exception | Condition
--- | ---
ArgumentException | accountId is Empty.
NoPrivilegeException | The caller does not have system administration privileges. -or- The specified account is associated with a tenant, but the caller does not have administration privileges for that tenant.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

ISessionService Interface
TerminateAllSessions Overload
Dundas.BI.AccountServices Namespace