語言

JsonMetadataServices.CreateQueueInfo 方法

定義

多載

CreateQueueInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs

建立可指派到 Queue<T>的類型元資料。

public:
generic <typename TCollection, typename TElement>
 where TCollection : System::Collections::Generic::Queue<TElement> static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateQueueInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateQueueInfo<TCollection,TElement>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : System.Collections.Generic.Queue<TElement>;
static member CreateQueueInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (requires 'Collection :> System.Collections.Generic.Queue<'Element>)> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Collection (requires 'Collection :> System.Collections.Generic.Queue<'Element>)> (requires 'Collection :> System.Collections.Generic.Queue<'Element>)
Public Shared Function CreateQueueInfo(Of TCollection As Queue(Of TElement), TElement As Queue(Of TElement)) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of TCollection)) As JsonTypeInfo(Of TCollection)

類型參數

TCollection

這是該類型的通用定義。

TElement

元素類型的通用定義。

參數

options
JsonSerializerOptions

用於 JsonSerializerOptions 序列化與反序列化。

collectionInfo
JsonCollectionInfoValues<TCollection>

提供關於集合類型的序列化元資料。

傳回

JsonTypeInfo<TCollection>

針對特定類型的序列化元資料。

備註

此 API 供 System.Text.Json 原始碼產生器的輸出使用,不應直接呼叫。

適用於

CreateQueueInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>, Action<TCollection,Object>)

來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs
來源:
JsonMetadataServices.Collections.cs

建立可指派到 Queue的類型元資料。

public:
generic <typename TCollection>
 where TCollection : System::Collections::IEnumerable static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateQueueInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo, Action<TCollection, System::Object ^> ^ addFunc);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateQueueInfo<TCollection>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo, Action<TCollection,object?> addFunc) where TCollection : System.Collections.IEnumerable;
static member CreateQueueInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (requires 'Collection :> System.Collections.IEnumerable)> * Action<'Collection, obj (requires 'Collection :> System.Collections.IEnumerable)> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Collection (requires 'Collection :> System.Collections.IEnumerable)> (requires 'Collection :> System.Collections.IEnumerable)
Public Shared Function CreateQueueInfo(Of TCollection As IEnumerable) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of TCollection), addFunc As Action(Of TCollection, Object)) As JsonTypeInfo(Of TCollection)

類型參數

TCollection

這是該類型的通用定義。

參數

options
JsonSerializerOptions

用於 JsonSerializerOptions 序列化與反序列化。

collectionInfo
JsonCollectionInfoValues<TCollection>

提供關於集合類型的序列化元資料。

addFunc
Action<TCollection,Object>

一種在使用序列化器的程式碼路徑時,將元素加入集合的方法。

傳回

JsonTypeInfo<TCollection>

針對特定類型的序列化元資料。

備註

此 API 供 System.Text.Json 原始碼產生器的輸出使用,不應直接呼叫。

適用於