JsonSerializerOptions.IncludeFields 属性

定义

确定是否在序列化和反序列化期间处理字段。Determines whether fields are handled during serialization and deserialization. 默认值为 falseThe default value is false.

public:
 property bool IncludeFields { bool get(); void set(bool value); };
public bool IncludeFields { get; set; }
member this.IncludeFields : bool with get, set
Public Property IncludeFields As Boolean

属性值

Boolean

例外

此属性在序列化或反序列化后设置。This property is set after serialization or deserialization has occurred.

适用于