Język

JsonMetadataServices.CreateReadOnlyMemoryInfo<TElement> Metoda

Definicja

Tworzy metadane serializacji dla elementu ReadOnlyMemory<T>.

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

Parametry typu

TElement

Ogólna definicja typu elementu.

Parametry

collectionInfo
JsonCollectionInfoValues<ReadOnlyMemory<TElement>>

Udostępnia metadane serializacji dotyczące typu kolekcji.

Zwraca

Metadane serializacji dla danego typu.

Uwagi

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

Dotyczy