asp.net.ph

NumberFormatInfo.CurrencySymbol Property

System.Globalization Namespace   NumberFormatInfo Class


Sets or retrieves the string to use as the currency symbol.

[ VB ]
public Property CurrencySymbol As String

[ C# ]
public string CurrencySymbol {get; set;}

[ C++ ]
public: __property String* get_CurrencySymbol ( );
public: __property void set_CurrencySymbol ( String* );

[ JScript ]
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.

Example

The below shows the CurrencySymbol used for each of the available cultures.

 Show me 

See Also

NumberFormatInfo Members   CurrencyDecimalDigits   CurrencyDecimalSeparator   CurrencyGroupSeparator   CurrencyGroupSizes   CurrencyNegativePattern   CurrencyPositivePattern   NaNSymbol   PercentSymbol   PerMilleSymbol Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note