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
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za