asp.net.ph

NumberFormatInfo.PercentDecimalSeparator Property

System.Globalization Namespace   NumberFormatInfo Class


Sets or retrieves the string to use as the decimal separator in percent values.

[ VB ]
public Property PercentDecimalSeparator As String

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

[ C++ ]
public: __property String* get_PercentDecimalSeparator ( );
public: __property void set_PercentDecimalSeparator ( String* );

[ JScript ]
function get PercentDecimalSeparator ( ) : String;
public function set PercentDecimalSeparator ( String );

Property Value

The string to use as the decimal separator in percent values. The default for InvariantInfo is ".".

Exceptions


Exception Type Condition
ArgumentNullException The property is being set to a null reference ( Nothing in Visual Basic ).
ArgumentException The property is being set to a value that is the same as NumberGroupSeparator, CurrencyGroupSeparator, or PercentGroupSeparator.
InvalidOperationException The property is being set and the NumberFormatInfo is read-only.

Remarks

If any of the group separators ( NumberGroupSeparator, CurrencyGroupSeparator, or PercentGroupSeparator ) is the same as any of the decimal separators ( NumberDecimalSeparator, CurrencyDecimalSeparator, or PercentDecimalSeparator ), parsing ambiguous strings produces unpredictable results. If you explicitly set any of the group separator properties in NumberFormatInfo to a value that is the same as any of the decimal separators or if you explicitly set any of the decimal separators to a value that is the same as any of the group separators, ArgumentException is thrown.

See Also

NumberFormatInfo Members   PercentDecimalDigits   PercentGroupSeparator   PercentGroupSizes   PercentSymbol   PercentNegativePattern   PercentPositivePattern   CurrencyDecimalSeparator   NumberDecimalSeparator Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph