JsonTypeInfo.UnmappedMemberHandling 属性

定义

获取或设置类型级 JsonUnmappedMemberHandling 替代。

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)

属性值

例外

实例 JsonTypeInfo 已被锁定,以便进行进一步修改。

仅 支持 Object未映射的成员处理。

注解

对于源自 DefaultJsonTypeInfoResolverJsonSerializerContext的协定,此回调的值将从任何 JsonUnmappedMemberHandlingAttribute 注释中映射。

适用于