CurrencyFormatter.Currency 属性

定义

注意

Windows 8.1后版本的货币可能为只读。 请改用新的 CurrencyFormatter

获取要用于格式化和分析货币值的货币的标识符。

public:
 property Platform::String ^ Currency { Platform::String ^ get(); void set(Platform::String ^ value); };
/// [set: Windows.Foundation.Metadata.Deprecated("Currency may be read-only for releases after Windows 8.1. Instead, use a new CurrencyFormatter.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
winrt::hstring Currency();

void Currency(winrt::hstring value);
/// [set: Windows.Foundation.Metadata.Deprecated("Currency may be read-only for releases after Windows 8.1. Instead, use a new CurrencyFormatter.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
winrt::hstring Currency();

void Currency(winrt::hstring value);
public string Currency { get; [Windows.Foundation.Metadata.Deprecated("Currency may be read-only for releases after Windows 8.1. Instead, use a new CurrencyFormatter.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] set; }
public string Currency { get; [Windows.Foundation.Metadata.Deprecated("Currency may be read-only for releases after Windows 8.1. Instead, use a new CurrencyFormatter.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] set; }
var string = currencyFormatter.currency;
currencyFormatter.currency = string;
Public Property Currency As String

属性值

String

Platform::String

winrt::hstring

格式化和分析货币值时要使用的货币标识符。

属性

适用于