Click or drag to resize
PMBalanceSetBalance Method
Sets the current balance amount. The UsePages value will determine whether currency or pages value is used.

Namespace: PM90SettingsAPI
Assembly: PM90SettingsAPI (in PM90SettingsAPI.dll) Version: 9.0.23.534 (9.0.23.534)
Syntax
C#
public void SetBalance(
	Nullable<double> currency = null,
	Nullable<int> pages = null
)

Parameters

currency (Optional)
Type: SystemNullableDouble
Value to set balance to when it is currency.
pages (Optional)
Type: SystemNullableInt32
Value to set balance to when it is pages.
Exceptions
ExceptionCondition
ArgumentExceptionNeeded parameter is null or zero, or balance is Unlimited
PMDatabaseExceptionRepresents an database connection or syntax error that has occurred when processing an API request
PMExceptionUnexcpected exception has occurred, check inner exception
See Also