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 "+".

例外狀況

在 set 作業中,要指派的值小於 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.

適用於

另請參閱