Sprache

JsonMetadataServices.CreateIListInfo Methode

Definition

Überlädt

Name Beschreibung
CreateIListInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Erstellt Metadaten für Typen, die zugewiesen werden IList<T>können.

CreateIListInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Erstellt Metadaten für Typen, die zugewiesen werden IListkönnen.

CreateIListInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs

Erstellt Metadaten für Typen, die zugewiesen werden IList<T>können.

public:
generic <typename TCollection, typename TElement>
 where TCollection : System::Collections::Generic::IList<TElement> static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateIListInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateIListInfo<TCollection,TElement>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : System.Collections.Generic.IList<TElement>;
static member CreateIListInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (requires 'Collection :> System.Collections.Generic.IList<'Element>)> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Collection (requires 'Collection :> System.Collections.Generic.IList<'Element>)> (requires 'Collection :> System.Collections.Generic.IList<'Element>)
Public Shared Function CreateIListInfo(Of TCollection As IList(Of TElement), TElement As IList(Of TElement)) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of TCollection)) As JsonTypeInfo(Of TCollection)

Typparameter

TCollection

Die generische Definition des Typs.

TElement

Die generische Definition des Elementtyps.

Parameter

options
JsonSerializerOptions

Der JsonSerializerOptions für die Serialisierung und Deserialisierung zu verwendende Code.

collectionInfo
JsonCollectionInfoValues<TCollection>

Stellt Serialisierungsmetadaten zum Sammlungstyp bereit.

Gibt zurück

JsonTypeInfo<TCollection>

Serialisierungsmetadaten für den angegebenen Typ.

Hinweise

Diese API dient der Verwendung durch die Ausgabe des System.Text.Json-Quellgenerators und sollte nicht direkt aufgerufen werden.

Gilt für:

CreateIListInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs
Quelle:
JsonMetadataServices.Collections.cs

Erstellt Metadaten für Typen, die zugewiesen werden IListkönnen.

public:
generic <typename TCollection>
 where TCollection : System::Collections::IList static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateIListInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateIListInfo<TCollection>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : System.Collections.IList;
static member CreateIListInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (requires 'Collection :> System.Collections.IList)> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Collection (requires 'Collection :> System.Collections.IList)> (requires 'Collection :> System.Collections.IList)
Public Shared Function CreateIListInfo(Of TCollection As IList) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of TCollection)) As JsonTypeInfo(Of TCollection)

Typparameter

TCollection

Die generische Definition des Typs.

Parameter

options
JsonSerializerOptions

Der JsonSerializerOptions für die Serialisierung und Deserialisierung zu verwendende Code.

collectionInfo
JsonCollectionInfoValues<TCollection>

Stellt Serialisierungsmetadaten zum Sammlungstyp bereit.

Gibt zurück

JsonTypeInfo<TCollection>

Serialisierungsmetadaten für den angegebenen Typ.

Hinweise

Diese API dient der Verwendung durch die Ausgabe des System.Text.Json-Quellgenerators und sollte nicht direkt aufgerufen werden.

Gilt für: