ILogOnServiceTryHypotheticalLogOn Method |
Gets the hypothetical result of a logon by the account with the specified ID (without actually creating a session).
Namespace:
Dundas.BI.AccountServices
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.4.0.1000)
Syntax LogOnResult TryHypotheticalLogOn(
Guid accountId,
bool deleteOtherSessions
)
Function TryHypotheticalLogOn (
accountId As Guid,
deleteOtherSessions As Boolean
) As LogOnResult
LogOnResult^ TryHypotheticalLogOn(
Guid accountId,
bool deleteOtherSessions
)
abstract TryHypotheticalLogOn :
accountId : Guid *
deleteOtherSessions : bool -> LogOnResult
Parameters
- accountId
- Type: SystemGuid
The ID of the account to try logging on. - deleteOtherSessions
- Type: SystemBoolean
A value indicating whether other sessions should be deleted if required for the logon to succeed.
Return Value
Type:
LogOnResultAn object describing the hypothetical result of the logon operation.
Exceptions Exception | Condition |
---|
ArgumentException | accountId is Empty. |
NotFoundException | The specified account was not found. |
NoPrivilegeException | The caller does not have system administration privileges. -or- The caller is associated with a tenant, but does not have administration privileges for that tenant. -or- The caller is associated with a tenant, the specified account does not belong to that tenant. |
InvalidSessionException | The caller context is not associated with a valid session. |
See Also