JsonSerializerOptions.DefaultIgnoreCondition Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die bepaalt wanneer eigenschappen met standaardwaarden worden genegeerd tijdens serialisatie of deserialisatie. De standaardwaarde 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

Waarde van eigenschap

Uitzonderingen

Deze eigenschap is ingesteld op Always.

Deze eigenschap wordt ingesteld nadat serialisatie of deserialisatie is opgetreden.

– of –

IgnoreNullValues is ingesteld op true. Deze eigenschappen kunnen niet samen worden gebruikt.

Van toepassing op