JsonTypeInfo.UnmappedMemberHandling 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 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.
An invalid JsonUnmappedMemberHandling value was specified.
Remarks
For contracts originating from DefaultJsonTypeInfoResolver or JsonSerializerContext, the value of this callback will be mapped from any JsonUnmappedMemberHandlingAttribute annotations.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för