Επεξεργασία

Κοινή χρήση μέσω


ReferenceHandler<T> Class

Definition

Defines how the JsonSerializer deals with references on serialization and deserialization.

generic <typename T>
 where T : ReferenceResolvergcnew()public ref class ReferenceHandler sealed : System::Text::Json::Serialization::ReferenceHandler
public sealed class ReferenceHandler<T> : System.Text.Json.Serialization.ReferenceHandler where T : ReferenceResolver, new()
type ReferenceHandler<'T (requires 'T :> ReferenceResolver and 'T : (new : unit -> 'T))> = class
    inherit ReferenceHandler
Public NotInheritable Class ReferenceHandler(Of T)
Inherits ReferenceHandler

Type Parameters

T

The type of the ReferenceResolver to create on each serialization or deserialization call.

Inheritance
ReferenceHandler<T>

Constructors

ReferenceHandler<T>()

Initializes a new instance of the ReferenceHandler<T> generic class that can create a ReferenceResolver instance of the specified type.

Methods

CreateResolver()

Creates a new ReferenceResolver of type T used for each serialization call.

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