JsonMetadataServices.CreateMemoryInfo<TElement> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立序列化元資料。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))
類型參數
- TElement
元素類型的通用定義。
參數
- options
- JsonSerializerOptions
- collectionInfo
- JsonCollectionInfoValues<Memory<TElement>>
提供關於集合類型的序列化元資料。
傳回
JsonTypeInfo<Memory<TElement>>
針對特定類型的序列化元資料。
備註
此 API 供 System.Text.Json 原始碼產生器的輸出使用,不應直接呼叫。