CurrencyConverter Delegate
Important
This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.
Delegate that takes an amount and currencies to round between.
Namespace: Microsoft.Dynamics.Commerce.Runtime.Data
Assembly: Microsoft.Dynamics.Commerce.Runtime.DataManagers (in Microsoft.Dynamics.Commerce.Runtime.DataManagers.dll)
Syntax
'Declaration
Public Delegate Function CurrencyConverter ( _
fromCurrencyCode As String, _
toCurrencyCode As String, _
amountToConvert As Decimal _
) As Decimal
'Usage
Dim instance As New CurrencyConverter(AddressOf HandlerMethod)
public delegate decimal CurrencyConverter(
string fromCurrencyCode,
string toCurrencyCode,
decimal amountToConvert
)
public delegate Decimal CurrencyConverter(
String^ fromCurrencyCode,
String^ toCurrencyCode,
Decimal amountToConvert
)
Parameters
- fromCurrencyCode
Type: System.String
- toCurrencyCode
Type: System.String
- amountToConvert
Type: System.Decimal
Return Value
Type: System.Decimal