JsonSerializerOptions.UnmappedMemberHandling 属性
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个 对象,该对象指定在反序列化对象类型时如何处理 JsonSerializer 无法映射到特定 .NET 成员的 JSON 属性。
public:
property System::Text::Json::Serialization::JsonUnmappedMemberHandling UnmappedMemberHandling { System::Text::Json::Serialization::JsonUnmappedMemberHandling get(); void set(System::Text::Json::Serialization::JsonUnmappedMemberHandling value); };
C#
public System.Text.Json.Serialization.JsonUnmappedMemberHandling UnmappedMemberHandling { get; set; }
member this.UnmappedMemberHandling : System.Text.Json.Serialization.JsonUnmappedMemberHandling with get, set
Public Property UnmappedMemberHandling As JsonUnmappedMemberHandling
产品 | 版本 |
---|---|
.NET | 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |