NumberFormatInfo.PositiveSign 属性

定义

获取或设置指示关联数字是正值的字符串。Gets or sets the string that denotes that the associated number is positive.

public:
 property System::String ^ PositiveSign { System::String ^ get(); void set(System::String ^ value); };
public string PositiveSign { get; set; }
member this.PositiveSign : string with get, set
Public Property PositiveSign As String

属性值

指示关联数字是正值的字符串。The string that denotes that the associated number is positive. InvariantInfo 默认为“+”。The default for InvariantInfo is "+".

异常

在设置操作中,要分配的值为 nullIn a set operation, the value to be assigned is null.

设置了该属性,但 NumberFormatInfo 对象为只读。The property is being set and the NumberFormatInfo object is read-only.

注解

此属性仅用于分析数字字符串,而不用于格式设置。This property is used only for parsing numeric strings, not for formatting.

适用于

另请参阅