Aracılığıyla paylaş


JsonMetadataServices.CreateMemoryInfo<TElement> Yöntem

Tanım

için Memory<T>serileştirme meta verileri oluşturur.

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))

Tür Parametreleri

TElement

Öğe türünün genel tanımı.

Parametreler

collectionInfo
JsonCollectionInfoValues<Memory<TElement>>

Koleksiyon türü hakkında serileştirme meta verileri sağlar.

Döndürülenler

JsonTypeInfo<Memory<TElement>>

Verilen tür için serileştirme meta verileri.

Açıklamalar

Bu API, System.Text.Json kaynak oluşturucusunun çıkışı tarafından kullanılır ve doğrudan çağrılmamalıdır.

Şunlara uygulanır