A Sandcastle Documented Class Library

# IAccountService GetAccount Method (Guid)

Gets the account with the specified ID.

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

    Account GetAccount(
    	Guid id
    )

    Function GetAccount (
    	id As Guid
    ) As Account

    Account^ GetAccount(
    	Guid id
    )

    abstract GetAccount :
            id : Guid -> Account

#### Parameters

id
  Type: System
  Guid
  The ID of the account to get.

#### Return Value

Type: Account
The account corresponding to the specified ID.
Exceptions

Exception | Condition
--- | ---
ArgumentException | id is Empty.
NotFoundException | An account with the specified ID was not found.
NoPrivilegeException | The account is not the caller's account. -or- The caller does not have system administration privileges. -or- The account is associated with a tenant, and the caller does not have administration privileges for that tenant.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IAccountService Interface
GetAccount Overload
Dundas.BI.AccountServices Namespace