JsonSerializerOptions.IndentCharacter 屬性

定義

定義啟用時 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。

適用於