Rediger

Del via


JsonTypeInfo Class

Definition

Provides JSON serialization-related metadata about a type.

public ref class JsonTypeInfo
public ref class JsonTypeInfo abstract
public class JsonTypeInfo
public abstract class JsonTypeInfo
type JsonTypeInfo = class
Public Class JsonTypeInfo
Public MustInherit Class JsonTypeInfo
Inheritance
JsonTypeInfo
Derived

Properties

ConstructorAttributeProvider

Gets or sets an attribute provider corresponding to the deserialization constructor.

Converter

Gets the JsonConverter associated with the current type.

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.

IsReadOnly

Gets a value that indicates whether the current instance has been locked for modification.

KeyType

Gets the key type corresponding to a dictionary type.

Kind

Gets a value that describes the kind of contract metadata that the current instance specifies.

NumberHandling

Gets or sets the type-level NumberHandling override.

OnDeserialized

Gets or sets a callback to be invoked after deserialization occurs.

OnDeserializing

Gets or sets a callback to be invoked before deserialization occurs.

OnSerialized

Gets or sets a callback to be invoked after serialization occurs.

OnSerializing

Gets or sets a callback to be invoked before serialization occurs.

Options

Gets the JsonSerializerOptions value associated with the current JsonTypeInfo instance.

OriginatingResolver

Gets or sets the IJsonTypeInfoResolver from which this metadata instance originated.

PolymorphismOptions

Gets or sets a configuration object specifying polymorphism metadata.

PreferredPropertyObjectCreationHandling

Gets or sets the preferred JsonObjectCreationHandling value for properties contained in the type.

Properties

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

Type

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

UnmappedMemberHandling

Gets or sets the type-level JsonUnmappedMemberHandling override.

Methods

CreateJsonPropertyInfo(Type, String)

Creates a blank JsonPropertyInfo instance for the current JsonTypeInfo.

CreateJsonTypeInfo(Type, JsonSerializerOptions)

Creates a blank JsonTypeInfo instance.

CreateJsonTypeInfo<T>(JsonSerializerOptions)

Creates a blank JsonTypeInfo<T> instance.

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.

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)

Generates a JSON schema corresponding to the specified contract metadata.

Applies to