ISessionServiceSwitchTenant Method

Switches the tenant of the current session.

Namespace:  Dundas.BI.AccountServices
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.1.0.1001)
Syntax
Session SwitchTenant(
	Guid? tenantId
)

Parameters

tenantId
Type: SystemNullableGuid
The ID of the tenant to switch into.

Return Value

Type: Session
The new session (which replaces the original session).
Exceptions
ExceptionCondition
ArgumentExceptiontenantId is Empty.
OperationFailedExceptionA logon session for the caller in the specified tenant could not be created.
NoPrivilegeExceptionThe caller's account is not a member of the specified tenant.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also