Taal

JsonMetadataServices.CreateObjectInfo<T> Methode

Definitie

Hiermee maakt u metagegevens voor een complexe klasse of struct.

public:
generic <typename T>
 static System::Text::Json::Serialization::Metadata::JsonTypeInfo<T> ^ CreateObjectInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonObjectInfoValues<T> ^ objectInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> CreateObjectInfo<T>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<T> objectInfo);
static member CreateObjectInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<'T> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'T>
Public Shared Function CreateObjectInfo(Of T) (options As JsonSerializerOptions, objectInfo As JsonObjectInfoValues(Of T)) As JsonTypeInfo(Of T)

Type parameters

T

Het type klasse of struct.

Parameters

options
JsonSerializerOptions

De JsonSerializerOptions te gebruiken voor serialisatie en deserialisatie.

objectInfo
JsonObjectInfoValues<T>

Biedt serialisatiemetagegevens over een objecttype met constructors, eigenschappen en velden.

Retouren

Een JsonTypeInfo<T> exemplaar dat de klasse of struct vertegenwoordigt.

Uitzonderingen

options of objectInfo is null.

Opmerkingen

Deze API is bedoeld voor gebruik door de uitvoer van de System.Text.Json-brongenerator en mag niet rechtstreeks worden aangeroepen.

Van toepassing op