Edit

Share via


JsonMetadataServices.CreateReadOnlyMemoryInfo<TElement> Method

Definition

Creates serialization metadata for 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))

Type Parameters

TElement

The generic definition of the element type.

Parameters

collectionInfo
JsonCollectionInfoValues<ReadOnlyMemory<TElement>>

Provides serialization metadata about the collection type.

Returns

Serialization metadata for the given type.

Remarks

This API is for use by the output of the System.Text.Json source generator and should not be called directly.

Applies to