JsonSerializerOptions.IndentCharacter 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
定義啟用時 WriteIndented 所使用的縮排字元。 預設是太空角色。
public:
property char IndentCharacter { char get(); void set(char value); };
public char IndentCharacter { get; set; }
member this.IndentCharacter : char with get, set
Public Property IndentCharacter As Char
屬性值
例外狀況
value 包含無效字元。
此特性是在序列化或反序列化發生後設定的。
備註
允許的字元是空白和橫向 Tab。