Freigeben über


JsonMetadataServices.CreateIListInfo Methode

Definition

Überlädt

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

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

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

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

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

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

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

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

Die , die JsonSerializerOptions für die Serialisierung und Deserialisierung verwendet werden soll.

collectionInfo
JsonCollectionInfoValues<TCollection>

Stellt Serialisierungsmetadaten zum Sammlungstyp bereit.

Gibt zurück

JsonTypeInfo<TCollection>

Serialisierungsmetadaten für den angegebenen Typ.

Hinweise

Diese API ist für die Verwendung durch die Ausgabe des System.Text.Json-Quellgenerators vorgesehen 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

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

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

Die , die JsonSerializerOptions für die Serialisierung und Deserialisierung verwendet werden soll.

collectionInfo
JsonCollectionInfoValues<TCollection>

Stellt Serialisierungsmetadaten zum Sammlungstyp bereit.

Gibt zurück

JsonTypeInfo<TCollection>

Serialisierungsmetadaten für den angegebenen Typ.

Hinweise

Diese API ist für die Verwendung durch die Ausgabe des System.Text.Json-Quellgenerators vorgesehen und sollte nicht direkt aufgerufen werden.

Gilt für: