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> を作成します。

CollectionModelBinder<TElement>(IModelBinder)

ソース:
CollectionModelBinder.cs
ソース:
CollectionModelBinder.cs

注意事項

This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.

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

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

public:
 CollectionModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ elementBinder);
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder);
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.")]
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.")>]
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
Public Sub New (elementBinder As IModelBinder)

パラメーター

elementBinder
IModelBinder

IModelBinderバインド要素の 。

属性

適用対象

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory)

ソース:
CollectionModelBinder.cs
ソース:
CollectionModelBinder.cs

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

public:
 CollectionModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ elementBinder, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
Public Sub New (elementBinder As IModelBinder, loggerFactory As ILoggerFactory)

パラメーター

elementBinder
IModelBinder

IModelBinderバインドTElementの 。

loggerFactory
ILoggerFactory

ILoggerFactory

注釈

バインドされていない最上位モデルが の場合IsBindingRequiredtrueでも、バインダーはエラーを追加しません。

適用対象

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean)

ソース:
CollectionModelBinder.cs

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

public:
 CollectionModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ elementBinder, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, bool allowValidatingTopLevelNodes);
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.Extensions.Logging.ILoggerFactory * bool -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
Public Sub New (elementBinder As IModelBinder, loggerFactory As ILoggerFactory, allowValidatingTopLevelNodes As Boolean)

パラメーター

elementBinder
IModelBinder

IModelBinderバインドTElementの 。

loggerFactory
ILoggerFactory

ILoggerFactory

allowValidatingTopLevelNodes
Boolean

最上位モデルの検証が有効になっていることを示します。 と IsBindingRequiredtrue最上位モデルの場合true、モデルがバインドされていないときにバインダーによってエラーが追加ModelStateDictionaryされます。

適用対象

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

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

public:
 CollectionModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ elementBinder, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, bool allowValidatingTopLevelNodes, Microsoft::AspNetCore::Mvc::MvcOptions ^ mvcOptions);
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes, Microsoft.AspNetCore.Mvc.MvcOptions mvcOptions);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.Extensions.Logging.ILoggerFactory * bool * Microsoft.AspNetCore.Mvc.MvcOptions -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
Public Sub New (elementBinder As IModelBinder, loggerFactory As ILoggerFactory, allowValidatingTopLevelNodes As Boolean, mvcOptions As MvcOptions)

パラメーター

elementBinder
IModelBinder

IModelBinderバインドTElementの 。

loggerFactory
ILoggerFactory

ILoggerFactory

allowValidatingTopLevelNodes
Boolean

最上位モデルの検証が有効になっていることを示します。 と IsBindingRequiredtrue最上位モデルの場合true、モデルがバインドされていないときにバインダーによってエラーが追加ModelStateDictionaryされます。

mvcOptions
MvcOptions

MvcOptions

注釈

これが推奨される CollectionModelBinder<TElement> コンストラクターです。

適用対象