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

定義

IAsyncEnumerable<T>に割り当て可能な型のシリアル化メタデータを作成します。

public:
generic <typename TCollection, typename TElement>
 where TCollection : System::Collections::Generic::IAsyncEnumerable<TElement> static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateIAsyncEnumerableInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateIAsyncEnumerableInfo<TCollection,TElement>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : System.Collections.Generic.IAsyncEnumerable<TElement>;
static member CreateIAsyncEnumerableInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (requires 'Collection :> System.Collections.Generic.IAsyncEnumerable<'Element>)> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Collection (requires 'Collection :> System.Collections.Generic.IAsyncEnumerable<'Element>)> (requires 'Collection :> System.Collections.Generic.IAsyncEnumerable<'Element>)
Public Shared Function CreateIAsyncEnumerableInfo(Of TCollection As IAsyncEnumerable(Of TElement), TElement As IAsyncEnumerable(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 ソース ジェネレーターの出力で使用されるため、直接呼び出すべきではありません。

適用対象