語言

StandardFormat(Char, Byte) 建構函式

定義

初始化結構的新實例 StandardFormat 。

public StandardFormat(char symbol, byte precision = 255);
new System.Buffers.StandardFormat : char * byte -> System.Buffers.StandardFormat
Public Sub New (symbol As Char, Optional precision As Byte = 255)

參數

symbol
Char

一個類型特定的格式指定符,例如 'G', 'D' 或 'X'.

precision
Byte

可選的精度範圍為0到99,或特殊值 NoPrecision (預設值)。

例外狀況

symbol 不是 NoPrecision,且其值大於 MaxPrecision。

-或-

symbol 無法轉換為 Byte。

適用於