This documentation is archived and is not being maintained.

NumberFormatInfo.PercentSymbol Property

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

[Visual Basic]
Public Property PercentSymbol As String
public string PercentSymbol {get; set;}
public: __property String* get_PercentSymbol();
public: __property void set_PercentSymbol(String*);
public function get PercentSymbol() : String;
public function set PercentSymbol(String);

Property Value

The string to use as the percent symbol. The default for InvariantInfo is "%".


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.


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 | PercentDecimalDigits | PercentDecimalSeparator | PercentGroupSeparator | PercentGroupSizes | PercentNegativePattern | PercentPositivePattern | CurrencySymbol | NaNSymbol | PerMilleSymbol