Share via


CurrencyFormatter.Currency Property

Definition

Note

Currency may be read-only for releases after Windows 8.1. Instead, use a new CurrencyFormatter.

Gets the identifier for the currency to be used for formatting and parsing currency values.

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

Property Value

String

Platform::String

winrt::hstring

The currency identifier to use when formatting and parsing currency values.

Attributes

Applies to