Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
0 out of 2 rated this helpful - Rate this topic

NumberFormatInfo.CurrencySymbol Property

Gets or sets the string to use as the currency symbol.

[Visual Basic]
Public Property CurrencySymbol As String
[C#]
public string CurrencySymbol {get; set;}
[C++]
public: __property String* get_CurrencySymbol();
public: __property void set_CurrencySymbol(String*);
[JScript]
public function get CurrencySymbol() : String;
public function set CurrencySymbol(String);

Property Value

The string to use as the currency symbol. The default for InvariantInfo is "$".

Exceptions

Exception Type Condition
ArgumentNullException The property is being set to a null reference (Nothing in Visual Basic).
InvalidOperationException The property is being set and the NumberFormatInfo is read-only.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

NumberFormatInfo Class | NumberFormatInfo Members | System.Globalization Namespace | CurrencyDecimalDigits | CurrencyDecimalSeparator | CurrencyGroupSeparator | CurrencyGroupSizes | CurrencyNegativePattern | CurrencyPositivePattern | NaNSymbol | PercentSymbol | PerMilleSymbol

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.