JsonTypeInfo<T> Class
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.
Provides JSON serialization-related metadata about a type.
generic <typename T>
public ref class JsonTypeInfo sealed : System::Text::Json::Serialization::Metadata::JsonTypeInfo
public sealed class JsonTypeInfo<T> : System.Text.Json.Serialization.Metadata.JsonTypeInfo
type JsonTypeInfo<'T> = class
inherit JsonTypeInfo
Public NotInheritable Class JsonTypeInfo(Of T)
Inherits JsonTypeInfo
Type Parameters
- T
The generic definition of the type.
- Inheritance
Properties
ConstructorAttributeProvider |
Gets or sets an attribute provider corresponding to the deserialization constructor. (Inherited from JsonTypeInfo) |
Converter |
Gets the JsonConverter associated with the current type. (Inherited from JsonTypeInfo) |
CreateObject |
Gets or sets a parameterless factory to be used on deserialization. |
ElementType |
Gets the element type corresponding to an enumerable, dictionary or optional type. (Inherited from JsonTypeInfo) |
IsReadOnly |
Gets a value that indicates whether the current instance has been locked for modification. (Inherited from JsonTypeInfo) |
KeyType |
Gets the key type corresponding to a dictionary type. (Inherited from JsonTypeInfo) |
Kind |
Gets a value that describes the kind of contract metadata that the current instance specifies. (Inherited from JsonTypeInfo) |
NumberHandling |
Gets or sets the type-level NumberHandling override. (Inherited from JsonTypeInfo) |
OnDeserialized |
Gets or sets a callback to be invoked after deserialization occurs. (Inherited from JsonTypeInfo) |
OnDeserializing |
Gets or sets a callback to be invoked before deserialization occurs. (Inherited from JsonTypeInfo) |
OnSerialized |
Gets or sets a callback to be invoked after serialization occurs. (Inherited from JsonTypeInfo) |
OnSerializing |
Gets or sets a callback to be invoked before serialization occurs. (Inherited from JsonTypeInfo) |
Options |
Gets the JsonSerializerOptions value associated with the current JsonTypeInfo instance. (Inherited from JsonTypeInfo) |
OriginatingResolver |
Gets or sets the IJsonTypeInfoResolver from which this metadata instance originated. (Inherited from JsonTypeInfo) |
PolymorphismOptions |
Gets or sets a configuration object specifying polymorphism metadata. (Inherited from JsonTypeInfo) |
PreferredPropertyObjectCreationHandling |
Gets or sets the preferred JsonObjectCreationHandling value for properties contained in the type. (Inherited from JsonTypeInfo) |
Properties |
Gets the list of JsonPropertyInfo metadata corresponding to the current type. (Inherited from JsonTypeInfo) |
SerializeHandler |
Serializes an instance of |
Type |
Gets the Type for which the JSON serialization contract is being defined. (Inherited from JsonTypeInfo) |
UnmappedMemberHandling |
Gets or sets the type-level JsonUnmappedMemberHandling override. (Inherited from JsonTypeInfo) |
Methods
CreateJsonPropertyInfo(Type, String) |
Creates a blank JsonPropertyInfo instance for the current JsonTypeInfo. (Inherited from JsonTypeInfo) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MakeReadOnly() |
Locks the current instance for further modification. (Inherited from JsonTypeInfo) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
GetJsonSchemaAsNode(JsonTypeInfo, JsonSchemaExporterOptions) |
Gets the JSON schema for |