This method is to update the tenant license.
Namespace: CelloSaaS.BusinessEdition.ServiceProxies.LicenseManagementAssembly: CelloSaaS.BusinessEdition (in CelloSaaS.BusinessEdition.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- tenantLicense
- Type: CelloSaaS.BusinessEdition.ServiceProxies.LicenseService TenantLicense
Tenant License Details(Mandatory - Tenant License Identifier,Tenant Identifier, Package Identifier)
Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | Throws ArgumentNullException if any mandatory argument is null or empty |
System ArgumentException | Throws ArgumentException if any argument is getting error value |
System UnauthorizedAccessException | Throws 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