NumberFormatInfo.PercentSymbol Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the string to use as the percent symbol.
public:
property System::String ^ PercentSymbol { System::String ^ get(); void set(System::String ^ value); };
public string PercentSymbol { get; set; }
member this.PercentSymbol : string with get, set
Public Property PercentSymbol As String
Property Value
The string to use as the percent symbol. The default for InvariantInfo is "%".
Exceptions
The property is being set to null
.
The property is being set and the NumberFormatInfo object is read-only.
Remarks
The string assigned to the PercentSymbol property is included in the result string when a numeric value is formatted with the "P" or with a format string that includes the "%" .
Applies to
See also
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET