CurrencyConverterConvert Method (Decimal, String, String, Int32) |
Note: This API is now obsolete.
Namespace: CMS.Ecommerce
[ObsoleteAttribute("Use 'CMS.Core.Service.Resolve<ICurrencyConverterService>().Convert(System.Decimal, System.String, System.String, System.Int32)' instead.")] public static decimal Convert( decimal amount, string inCurrencyCode, string toCurrencyCode, int siteID )
Exception | Condition |
---|---|
ArgumentException | Thrown when currency with given code does not exist in the system. |
InvalidCurrencyConversionException | Thrown when conversion fails (e.g. exchange rate not found). |