Udostępnij za pośrednictwem


JsonMetadataServices.CreateMemoryInfo<TElement> Metoda

Definicja

Tworzy metadane serializacji dla elementu Memory<T>.

public:
generic <typename TElement>
 static System::Text::Json::Serialization::Metadata::JsonTypeInfo<Memory<TElement>> ^ CreateMemoryInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<Memory<TElement>> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<Memory<TElement>> CreateMemoryInfo<TElement> (System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<Memory<TElement>> collectionInfo);
static member CreateMemoryInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<Memory<'Element>> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<Memory<'Element>>
Public Shared Function CreateMemoryInfo(Of TElement) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of Memory(Of TElement))) As JsonTypeInfo(Of Memory(Of TElement))

Parametry typu

TElement

Ogólna definicja typu elementu.

Parametry

options
JsonSerializerOptions

Element JsonSerializerOptions do użycia.

collectionInfo
JsonCollectionInfoValues<Memory<TElement>>

Udostępnia metadane serializacji dotyczące typu kolekcji.

Zwraca

JsonTypeInfo<Memory<TElement>>

Metadane serializacji dla danego typu.

Uwagi

Ten interfejs API jest używany przez dane wyjściowe generatora źródłowego System.Text.Json i nie powinien być wywoływany bezpośrednio.

Dotyczy