Rediger

Del via


JsonTypeInfo.UnmappedMemberHandling Property

Definition

Gets or sets the type-level JsonUnmappedMemberHandling override.

public:
 property Nullable<System::Text::Json::Serialization::JsonUnmappedMemberHandling> UnmappedMemberHandling { Nullable<System::Text::Json::Serialization::JsonUnmappedMemberHandling> get(); void set(Nullable<System::Text::Json::Serialization::JsonUnmappedMemberHandling> value); };
public System.Text.Json.Serialization.JsonUnmappedMemberHandling? UnmappedMemberHandling { get; set; }
member this.UnmappedMemberHandling : Nullable<System.Text.Json.Serialization.JsonUnmappedMemberHandling> with get, set
Public Property UnmappedMemberHandling As Nullable(Of JsonUnmappedMemberHandling)

Property Value

Exceptions

The JsonTypeInfo instance has been locked for further modification.

-or-

Unmapped member handling is only supported for Object.

Remarks

For contracts originating from DefaultJsonTypeInfoResolver or JsonSerializerContext, the value of this callback will be mapped from any JsonUnmappedMemberHandlingAttribute annotations.

Applies to