Back to API Home

Gets a Account specified by its name.

Namespace: Dundas.Dashboard.Administration
Assembly: Dundas.Dashboard.Client (in Dundas.Dashboard.Client.dll) Version: 5.0.0.0 (5.5.0.1000)

Syntax

C#
public static void GetByNameAsync(
	string accountName,
	OnCompleted<Account> callback
)
Visual Basic
Public Shared Sub GetByNameAsync ( 
	accountName As String,
	callback As OnCompleted(Of Account)
)

Parameters

accountName
Type: System..::..String
The account's name.
callback
Type: Dundas.Dashboard..::..OnCompleted<(Of <(<'Account>)>)>
The callback that is invoked when the method completes.

Exceptions

ExceptionCondition
Dundas.Dashboard..::..ObjectNotFoundExceptionThe account does not exist.
Dundas.Dashboard..::..InvalidArgumentExceptionA callback delegate must be specified.
Dundas.Dashboard..::..NoPrivilegeExceptionNo privilege for attempted operation.
Dundas.Dashboard..::..InvalidSessionExceptionYour session is no longer valid.

See Also