Sdílet prostřednictvím


CurrencyAmount(String, String) Constructor

Definition

Creates a new CurrencyAmount object (in the specified amount and currency).

public:
 CurrencyAmount(Platform::String ^ amount, Platform::String ^ currency);
 CurrencyAmount(winrt::hstring const& amount, winrt::hstring const& currency);
public CurrencyAmount(string amount, string currency);
function CurrencyAmount(amount, currency)
Public Sub New (amount As String, currency As String)

Parameters

amount
String

Platform::String

winrt::hstring

A string containing a decimal number in the invariant culture format (for example, a culture-insensitive amount such as "100.00").

currency
String

Platform::String

winrt::hstring

A string containing a CurrencyIdentifiers value (such as USD), other ISO 4217 alphabetic currency code, "vendor-specific" code prefixed with "X-" (for example, "X-ContosoPoints") or other currency name (including cryptocurrency, such as "Bitcoin" or "TRON").

Applies to