A Sandcastle Documented Class Library

# ILicenseService CanCreateAccount Method

Determines whether an account using the specified seat kind can be created.

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

    bool CanCreateAccount(
    	LicenseSeatKind seatKind,
    	bool isSeatReserved,
    	Guid? tenantId
    )

    Function CanCreateAccount (
    	seatKind As LicenseSeatKind,
    	isSeatReserved As Boolean,
    	tenantId As Guid?
    ) As Boolean

    bool CanCreateAccount(
    	LicenseSeatKind seatKind,
    	bool isSeatReserved,
    	Nullable<Guid> tenantId
    )

    abstract CanCreateAccount :
            seatKind : LicenseSeatKind *
            isSeatReserved : bool *
            tenantId : Nullable<Guid> -> bool

#### Parameters

seatKind
  Type: Dundas.BI.Licensing
  LicenseSeatKind
  The seat kind.
isSeatReserved
  Type: System
  Boolean
  A value indicating whether the account will use a reserved seat.
tenantId
  Type: System
  Nullable
  Guid
  The tenant ID of the account.

#### Return Value

Type: Boolean
if there are enough seats left to create the account; otherwise,
.
Exceptions

Exception | Condition
--- | ---
ArgumentException | tenantId is Empty.
ArgumentOutOfRangeException | seatKind is not one of the LicenseSeatKind values.
NoPrivilegeException | The caller does not have system administration privileges. -or- The caller does not have administrative privileges for the tenant.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

ILicenseService Interface
Dundas.BI.Licensing Namespace