CollectionModelBinder<TElement> クラス

定義

IModelBinder バインディング コレクション値の実装。

generic <typename TElement>
public ref class CollectionModelBinder : Microsoft::AspNetCore::Mvc::ModelBinding::ICollectionModelBinder, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder
public class CollectionModelBinder<TElement> : Microsoft.AspNetCore.Mvc.ModelBinding.ICollectionModelBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
type CollectionModelBinder<'Element> = class
    interface ICollectionModelBinder
    interface IModelBinder
Public Class CollectionModelBinder(Of TElement)
Implements ICollectionModelBinder, IModelBinder

型パラメーター

TElement

コレクション内の要素の型。

継承
CollectionModelBinder<TElement>
派生
実装

コンストラクター

CollectionModelBinder<TElement>(IModelBinder)
古い.

このコンストラクターは廃止され、将来のバージョンで削除される予定です。 推奨される代替手段は、 を受け取る ILoggerFactoryオーバーロードです。

新しい CollectionModelBinder<TElement> を作成します。

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory)

新しい CollectionModelBinder<TElement> を作成します。

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean)

新しい CollectionModelBinder<TElement> を作成します。

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean, MvcOptions)

新しい CollectionModelBinder<TElement> を作成します。

プロパティ

ElementBinder

IModelBinderバインド コレクション要素のインスタンスを取得します。

Logger

ILoggerこのバインダーのログ記録に使用される 。

メソッド

AddErrorIfBindingRequired(ModelBindingContext)

の場合IsBindingRequiredModelError、 に を追加しますModelState

BindModelAsync(ModelBindingContext)

モデルのバインドを試みます。

CanCreateInstance(Type)

この ICollectionModelBinder 実装で に割り当て可能な を作成できるかどうかを示す値を Object 取得します targetType

ConvertToCollectionType(Type, IEnumerable<TElement>)

からcollectionメンバーをObject含む にtargetType割り当て可能な を取得します。

CopyToModel(Object, IEnumerable<TElement>)

指定した targetに からsourceCollection値を追加します。

CreateEmptyCollection(Type)

Object 割り当て可能な を作成します targetType

CreateInstance(Type)

targetType のインスタンスを作成します。

適用対象