LicenseProxy ValidateUsageLicense Method CelloSaaS API Documentation
This method is used to validate license for usage limit of tenant.

Namespace: CelloSaaS.BusinessEdition.ServiceProxies.LicenseManagement
Assembly: CelloSaaS.BusinessEdition (in CelloSaaS.BusinessEdition.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax

public static string ValidateUsageLicense(
	string usageType,
	string usageName,
	double amount,
	string tenantId
)

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: String
The Usage Status
Exceptions

ExceptionCondition
System ArgumentNullExceptionThrows 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