Click or drag to resize
CurrencyInfoProviderChangeMainCurrencyInternal Method
Changes main currency and recalculates specified "money" values.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
protected virtual void ChangeMainCurrencyInternal(
	int siteId,
	int newCurrencyId,
	double rate,
	int round,
	RecalculationSettings settings
)

Parameters

siteId
Type: SystemInt32
ID of the site, which main currency is to be changed
newCurrencyId
Type: SystemInt32
ID of the new main currency
rate
Type: SystemDouble
Exchange rate which will be used when recalculating
round
Type: SystemInt32
Number of decimal digits to which the result will be rounded
settings
Type: CMS.EcommerceRecalculationSettings
Determines which objects are to be recalculated
See Also