Compartir a través de


JsonMetadataServices.CreateReadOnlyMemoryInfo<TElement> Método

Definición

Crea metadatos de serialización para 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))

Parámetros de tipo

TElement

Definición genérica del tipo de elemento.

Parámetros

options
JsonSerializerOptions

Objeto JsonSerializerOptions que se va a usar.

collectionInfo
JsonCollectionInfoValues<ReadOnlyMemory<TElement>>

Proporciona metadatos de serialización sobre el tipo de colección.

Devoluciones

Metadatos de serialización para el tipo especificado.

Comentarios

Esta API la usa la salida del generador de origen System.Text.Json y no debe llamarse directamente.

Se aplica a