CurrencyAmount 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义用于指定货币及其金额的属性。
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
- 继承
- 属性
Windows 要求
设备系列 |
Windows 10, version 1903 (在 10.0.18362.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v8.0 中引入)
|
构造函数
CurrencyAmount(String, String) |
创建一个新的 CurrencyAmount 对象 (指定的金额和货币) 。 |
属性
Amount |
金额。 |
Currency |
特定国家/地区通常使用的货币。 |