Click or drag to resize
CurrencyConverterApplyExchangeRate Method

Note: This API is now obsolete.

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#
[ObsoleteAttribute("Use 'CMS.Core.Service.Resolve<ICurrencyConverterService>().ApplyExchangeRate(System.Decimal, System.Decimal)' instead.")]
public static decimal ApplyExchangeRate(
	decimal amount,
	decimal rate
)

Parameters

amount
Type: SystemDecimal
Monetary amount.
rate
Type: SystemDecimal
Exchange rate to be applied.

Return Value

Type: Decimal
Amount converted using given rate.
See Also