A Sandcastle Documented Class Library

# IMultiTenancyService GetTenant Method

Gets the tenant with the specified ID.

Namespace: Dundas.BI.AccountServices.MultiTenancy
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    Tenant GetTenant(
    	Guid id
    )

    Function GetTenant (
    	id As Guid
    ) As Tenant

    Tenant^ GetTenant(
    	Guid id
    )

    abstract GetTenant :
            id : Guid -> Tenant

#### Parameters

id
  Type: System
  Guid
  The ID of the tenant.

#### Return Value

Type: Tenant
The tenant corresponding to the specified ID.
Exceptions

Exception | Condition
--- | ---
ArgumentException | id is Empty.
NotFoundException | A tenant with the given ID does not exist.
FeatureNotEnabledException | The multi-tenancy features of the application are not enabled.
NoPrivilegeException | The caller does not have system administration privileges.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IMultiTenancyService Interface
Dundas.BI.AccountServices.MultiTenancy Namespace