A Sandcastle Documented Class Library

# IAccountService GetAccount Method (String)

Gets the account with the specified name.

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(
    	string name
    )

    Function GetAccount (
    	name As String
    ) As Account

    Account^ GetAccount(
    	String^ name
    )

    abstract GetAccount :
            name : string -> Account

#### Parameters

name
  Type: System
  String
  The name of the account to get.

#### Return Value

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

Exception | Condition
--- | ---
ArgumentException | name is or empty.
NotFoundException | An account with the specified name was not found.
NoPrivilegeException | 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.

Remarks
For Windows accounts, use the DOMAIN\AccountName format.
See Also

#### Reference

IAccountService Interface
GetAccount Overload
Dundas.BI.AccountServices Namespace