CurrencyAmount クラス

定義

通貨とその金額を指定するためのプロパティを定義します。

public ref class CurrencyAmount sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Globalization.ICurrencyAmountFactory, 524288, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CurrencyAmount final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Globalization.ICurrencyAmountFactory), 524288, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CurrencyAmount
function CurrencyAmount(amount, currency)
Public NotInheritable Class CurrencyAmount
継承
Object Platform::Object IInspectable CurrencyAmount
属性

Windows の要件

デバイス ファミリ
Windows 10, version 1903 (10.0.18362.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v8.0 で導入)

コンストラクター

CurrencyAmount(String, String)

新しい CurrencyAmount オブジェクトを (指定した金額と通貨で) 作成します。

プロパティ

Amount

金額。

Currency

特定の国で一般的に使用される通貨。

適用対象

こちらもご覧ください