LicenseProxy UpdateLicenseForLicensePackage Method CelloSaaS API Documentation
This method is to update the tenant license.

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

public static void UpdateLicenseForLicensePackage(
	TenantLicense tenantLicense
)

Parameters

tenantLicense
Type: CelloSaaS.BusinessEdition.ServiceProxies.LicenseService TenantLicense
Tenant License Details(Mandatory - Tenant License Identifier,Tenant Identifier, Package Identifier)
Exceptions

ExceptionCondition
System ArgumentNullExceptionThrows ArgumentNullException if any mandatory argument is null or empty
System ArgumentExceptionThrows ArgumentException if any argument is getting error value
System UnauthorizedAccessExceptionThrows UnauthorizedAccessException if user don't have update license for license package
[!:LicenseException]Throws LicenseException if any errors occurs in module license validate
Examples

public void UpdateLicenseForLicensePackage()
{
    TenantLicense tenantLicense = new TenantLicense();
    tenantLicense.TenantLicenseCode = "F2446542-0294-DF11-8DEB-001EC9DAB123";
    tenantLicense.TenantId = "F1446542-0294-DF11-8DEB-001EC9DAB123";
    tenantLicense.PackageId = "A011B120-DD93-DF11-8DEB-001EC9DAB123";
    tenantLicense.NumberOfUsers = "150";
    LicenseProxy.UpdateLicenseForLicensePackage(tenantLicense);
}
See Also