JsonMetadataServices.CreateReadOnlyMemoryInfo<TElement> Metod

Definition

Skapar serialiseringsmetadata för 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))

Typparametrar

TElement

Den allmänna definitionen av elementtypen.

Parametrar

collectionInfo
JsonCollectionInfoValues<ReadOnlyMemory<TElement>>

Innehåller serialiseringsmetadata om samlingstypen.

Returer

Serialiseringsmetadata för den angivna typen.

Kommentarer

Det här API:et används av utdata från System.Text.Json-källgeneratorn och bör inte anropas direkt.

Gäller för