PaymentCurrencyAmount Constructors

Definition

Overloads

PaymentCurrencyAmount(String, String)

Creates a new PaymentCurrencyAmount object

PaymentCurrencyAmount(String, String, String)

Creates a new PaymentCurrencyAmount object.

PaymentCurrencyAmount(String, String)

Creates a new PaymentCurrencyAmount object

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

Parameters

value
String

Platform::String

winrt::hstring

The monetary value. An exception will be thrown if this value doesn't match the following regex pattern.

^-?[0-9]+(\.[0-9]+)?$
currency
String

Platform::String

winrt::hstring

The currency identifier. The default CurrencySystem is urn:iso:std:iso:4217.

Important

Validity of currency values are not enforced.

Applies to

PaymentCurrencyAmount(String, String, String)

Creates a new PaymentCurrencyAmount object.

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

Parameters

value
String

Platform::String

winrt::hstring

The monetary value. An exception will be thrown if this value doesn't match the following regex pattern.

^-?[0-9]+(\.[0-9]+)?$
currency
String

Platform::String

winrt::hstring

The currency. Valid values are determined by currencySystem. For example, if currencySystem is urn:iso:std:iso:4217 then USD is a valid currency value.

Important

Validity of currency values are not enforced.

currencySystem
String

Platform::String

winrt::hstring

The currency system.

Applies to