语言

JsonValueReaderWriter.HandlesNullWrites 属性

定义

如果 true,则 null 将传递给编写器 ToJson(Utf8JsonWriter, Object) 的方法。 否则,null 值将始终写入为 null。

public virtual bool HandlesNullWrites { get; }
member this.HandlesNullWrites : bool
Public Overridable ReadOnly Property HandlesNullWrites As Boolean

属性值

注解

默认值为 false。

适用于