Increments the usage by the given amount.
Namespace: CelloSaaS.BusinessEdition.ServiceProxies.LicenseManagementAssembly: CelloSaaS.BusinessEdition (in CelloSaaS.BusinessEdition.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- tenantIdentifier
- Type: System String
- usageName
- Type: System String
- amount
- Type: System Double
Usage Amount(Mandatory - Not less than or equal to Zero)
Return Value
Type: BooleanThe True/False value
Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | Throws ArgumentNullException if any mandatory argument is null or empty |
System ArgumentException | Throws ArgumentException if any argument is producing error |
[!:LicenseException] | Throws LicenseException if any error occurs in this method |
Examples
public void IncrementMeterUsage() { string tenantIdentifier = "B590CD25-3093-DF11-8DEB-001EC9DAB123"; string usageCode = "CompanyUsage"; double amount = 1; bool incrementedUsage = MeteringProxy.IncrementMeterUsage(tenantIdentifier, usageCode, amount); }
See Also