Xperience 13 API Reference
Xperience 13 API Reference
Namespaces
CMS Namespaces
CMS.Ecommerce Namespaces
CMS.Ecommerce
CurrencyConverterService Class
CurrencyConverterService Methods
ApplyExchangeRate Method
Convert Method
GetExchangeRate Method
TryGetExchangeRate Method
CurrencyConverterService
ApplyExchangeRate Method
Applies given exchange rate to monetary amount. If rate is negative or zero, amount is returned with no change.
Namespace:
CMS.Ecommerce
Assembly:
CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
Copy
public
decimal
ApplyExchangeRate
(
decimal
amount
,
decimal
rate
)
Parameters
amount
Type:
System
Decimal
Monetary amount.
rate
Type:
System
Decimal
Exchange rate to be applied.
Return Value
Type:
Decimal
Amount converted using given rate.
Implements
ICurrencyConverterService
ApplyExchangeRate(Decimal, Decimal)
See Also
Reference
CurrencyConverterService Class
CMS.Ecommerce Namespace
Copyright (c) 2023 Kentico Software
Send comments on this topic to
support@kentico.com