NumberFormatInfo.CurrencySymbol Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the string to use as the currency symbol.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.StringThe string to use as the currency symbol. The default for InvariantInfo is "¤".
| Exception | Condition |
|---|---|
| ArgumentNullException | The property is being set to null. |
| InvalidOperationException | The property is being set and the NumberFormatInfo object is read-only. |
The following example demonstrates the CurrencySymbol property. This example is part of a larger example provided for the NumberFormatInfo class.
Show: