JsonTypeInfo.PreferredPropertyObjectCreationHandling Property
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 preferred JsonObjectCreationHandling value for properties contained in the type.
public:
property Nullable<System::Text::Json::Serialization::JsonObjectCreationHandling> PreferredPropertyObjectCreationHandling { Nullable<System::Text::Json::Serialization::JsonObjectCreationHandling> get(); void set(Nullable<System::Text::Json::Serialization::JsonObjectCreationHandling> value); };
public System.Text.Json.Serialization.JsonObjectCreationHandling? PreferredPropertyObjectCreationHandling { get; set; }
member this.PreferredPropertyObjectCreationHandling : Nullable<System.Text.Json.Serialization.JsonObjectCreationHandling> with get, set
Public Property PreferredPropertyObjectCreationHandling As Nullable(Of JsonObjectCreationHandling)
The JsonTypeInfo instance has been locked for further modification.
-or-
Unmapped member handling is only supported for JsonTypeInfoKind.Object.
Specified an invalid JsonObjectCreationHandling value.
For contracts originating from DefaultJsonTypeInfoResolver or JsonSerializerContext, the value of this callback will be mapped from JsonObjectCreationHandlingAttribute annotations on types.
Product | Versions |
---|---|
.NET | 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: