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

特定国家/地区通常使用的货币。

适用于

另请参阅