JsonMetadataServices.CreateMemoryInfo<TElement> Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Tworzy metadane serializacji dla elementu Memory<T>.
public:
generic <typename TElement>
static System::Text::Json::Serialization::Metadata::JsonTypeInfo<Memory<TElement>> ^ CreateMemoryInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<Memory<TElement>> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<Memory<TElement>> CreateMemoryInfo<TElement> (System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<Memory<TElement>> collectionInfo);
static member CreateMemoryInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<Memory<'Element>> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<Memory<'Element>>
Public Shared Function CreateMemoryInfo(Of TElement) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of Memory(Of TElement))) As JsonTypeInfo(Of Memory(Of TElement))
Parametry typu
- TElement
Ogólna definicja typu elementu.
Parametry
- options
- JsonSerializerOptions
Element JsonSerializerOptions do użycia.
- collectionInfo
- JsonCollectionInfoValues<Memory<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łowego System.Text.Json i nie powinien być wywoływany bezpośrednio.