次の方法で共有


JsonMetadataServices.CreateConcurrentStackInfo<TCollection,TElement> メソッド

定義

に割り当て可能な型のメタデータを作成します ConcurrentStack<T>

public:
generic <typename TCollection, typename TElement>
 where TCollection : System::Collections::Concurrent::ConcurrentStack<TElement> static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateConcurrentStackInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateConcurrentStackInfo<TCollection,TElement> (System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : System.Collections.Concurrent.ConcurrentStack<TElement>;
static member CreateConcurrentStackInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (requires 'Collection :> System.Collections.Concurrent.ConcurrentStack<'Element>)> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Collection (requires 'Collection :> System.Collections.Concurrent.ConcurrentStack<'Element>)> (requires 'Collection :> System.Collections.Concurrent.ConcurrentStack<'Element>)
Public Shared Function CreateConcurrentStackInfo(Of TCollection As ConcurrentStack(Of TElement), TElement As ConcurrentStack(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 ソース ジェネレーターの出力で使用されるため、直接呼び出さないでください。

適用対象