Click or drag to resize
ExchangeTableInfoProviderGetLastExchangeRateFromGlobalMainCurrencyInternal Method
Returns valid exchange rate from global main currency to the currency of the specified site or last invalid exchange rate if no valid rate found. Throws an exception when no rate found. If site uses global currencies or global currency code equals site currency code, 1 is returned automatically.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
protected virtual double GetLastExchangeRateFromGlobalMainCurrencyInternal(
	int siteId
)

Parameters

siteId
Type: SystemInt32
ID of the site for which the exchange rate should be returned

Return Value

Type: Double
Exceptions
ExceptionCondition
InvalidCurrencyConversionExceptionThrown when exchange rate from global main currency is not specified.
See Also