JsonMetadataServices.CreateReadOnlyMemoryInfo<TElement> Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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
- options
- JsonSerializerOptions
Att JsonSerializerOptions använda.
- 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.