This method is used to validate license for usage limit of tenant.
Namespace: CelloSaaS.BusinessEdition.ServiceProxies.LicenseManagementAssembly: CelloSaaS.BusinessEdition (in CelloSaaS.BusinessEdition.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- usageType
- Type: System String
Usage Type(Mandatory)
- usageName
- Type: System String
- amount
- Type: System Double
Usage Amount(Mandatory - Not less than or equal to zero)
- tenantId
- Type: System String
Tenant Identifier(Mandatory)
Return Value
Type: StringThe Usage Status
Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | Throws ArgumentNullException if any mandatory argument is null or empty |
[!:LicenseException] | Throws LicenseException if any errors occurs in module license validate |
Examples
public void ValidateUsageLicense() { string usageType = "BlockUsage"; string usageCode = "CompanyUsage"; double amount = 2; string tenantId = "B590CD25-3093-DF11-8DEB-001EC9DAB123"; bool validUsage = LicenseProxy.ValidateUsageLicense(usageType, usageName, amount, tenantId); }
See Also