JsonMetadataServices.CreateIEnumerableInfo メソッド

定義

オーバーロード

名前 説明
CreateIEnumerableInfo<TCollection,TElement>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

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

CreateIEnumerableInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

IEnumerableに割り当て可能な型のメタデータを作成します。

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

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

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

適用対象

CreateIEnumerableInfo<TCollection>(JsonSerializerOptions, JsonCollectionInfoValues<TCollection>)

ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs
ソース:
JsonMetadataServices.Collections.cs

IEnumerableに割り当て可能な型のメタデータを作成します。

public:
generic <typename TCollection>
 where TCollection : System::Collections::IEnumerable static System::Text::Json::Serialization::Metadata::JsonTypeInfo<TCollection> ^ CreateIEnumerableInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonCollectionInfoValues<TCollection> ^ collectionInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<TCollection> CreateIEnumerableInfo<TCollection>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : System.Collections.IEnumerable;
static member CreateIEnumerableInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<'Collection (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 CreateIEnumerableInfo(Of TCollection As IEnumerable) (options As JsonSerializerOptions, collectionInfo As JsonCollectionInfoValues(Of TCollection)) As JsonTypeInfo(Of TCollection)

型パラメーター

TCollection

型のジェネリック定義。

パラメーター

options
JsonSerializerOptions

シリアル化と逆シリアル化に使用する JsonSerializerOptions

collectionInfo
JsonCollectionInfoValues<TCollection>

コレクション型に関するシリアル化メタデータを提供します。

返品

JsonTypeInfo<TCollection>

指定された型のシリアル化メタデータ。

注釈

この API は System.Text.Json ソース ジェネレーターの出力で使用されるため、直接呼び出すべきではありません。

適用対象