JsonSerializerOptions.DefaultIgnoreCondition Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that determines when properties with default values are ignored during serialization or deserialization. The default value is Never.
public:
property System::Text::Json::Serialization::JsonIgnoreCondition DefaultIgnoreCondition { System::Text::Json::Serialization::JsonIgnoreCondition get(); void set(System::Text::Json::Serialization::JsonIgnoreCondition value); };
public System.Text.Json.Serialization.JsonIgnoreCondition DefaultIgnoreCondition { get; set; }
member this.DefaultIgnoreCondition : System.Text.Json.Serialization.JsonIgnoreCondition with get, set
Public Property DefaultIgnoreCondition As JsonIgnoreCondition
Property Value
Exceptions
This property is set to Always.
This property is set after serialization or deserialization has occurred.
-or-
IgnoreNullValues has been set to true
. These properties cannot be used together.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.