JsonTypeInfo<T> Class

Definition

Provides JSON serialization-related metadata about a type.

generic <typename T>
public ref class JsonTypeInfo abstract : System::Text::Json::Serialization::Metadata::JsonTypeInfo
public abstract class JsonTypeInfo<T> : System.Text.Json.Serialization.Metadata.JsonTypeInfo
type JsonTypeInfo<'T> = class
    inherit JsonTypeInfo
Public MustInherit Class JsonTypeInfo(Of T)
Inherits JsonTypeInfo

Type Parameters

T

The generic definition of the type.

Inheritance
JsonTypeInfo<T>

Properties

Converter

Gets the JsonConverter associated with the current type.

(Inherited from JsonTypeInfo)
CreateObject

Gets or sets a parameterless factory to be used on deserialization.

CreateObject

Gets or sets a parameterless factory to be used on deserialization.

(Inherited from JsonTypeInfo)
IsReadOnly (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)
PolymorphismOptions

Gets or sets a configuration object specifying polymorphism metadata.

(Inherited from JsonTypeInfo)
Properties

Gets the list of JsonPropertyInfo metadata corresponding to the current type.

(Inherited from JsonTypeInfo)
SerializeHandler

Serializes an instance of T using JsonSourceGenerationOptionsAttribute values specified at design time.

Type

Gets the Type for which the JSON serialization contract is being defined.

(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() (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)

Applies to