ComplexTypeModelBinder コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>) |
古い.
このコンストラクターは廃止され、将来のバージョンで削除される予定です。 推奨される代替手段は、 を受け取る ILoggerFactoryオーバーロードです。 新しい ComplexTypeModelBinder を作成します。 |
ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>, ILoggerFactory) |
新しい ComplexTypeModelBinder を作成します。 |
ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>, ILoggerFactory, Boolean) |
新しい ComplexTypeModelBinder を作成します。 |
ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>)
注意事項
This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.
このコンストラクターは廃止され、将来のバージョンで削除される予定です。 推奨される代替手段は、 を受け取る ILoggerFactoryオーバーロードです。
新しい ComplexTypeModelBinder を作成します。
public:
ComplexTypeModelBinder(System::Collections::Generic::IDictionary<Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^> ^ propertyBinders);
public ComplexTypeModelBinder (System.Collections.Generic.IDictionary<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata,Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder> propertyBinders);
[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 ComplexTypeModelBinder (System.Collections.Generic.IDictionary<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata,Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder> propertyBinders);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ComplexTypeModelBinder : System.Collections.Generic.IDictionary<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder> -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ComplexTypeModelBinder
[<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.ComplexTypeModelBinder : System.Collections.Generic.IDictionary<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder> -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ComplexTypeModelBinder
Public Sub New (propertyBinders As IDictionary(Of ModelMetadata, IModelBinder))
パラメーター
- propertyBinders
- IDictionary<ModelMetadata,IModelBinder>
IDictionary<TKey,TValue>バインド プロパティに使用するバインダーの 。
- 属性
適用対象
ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>, ILoggerFactory)
新しい ComplexTypeModelBinder を作成します。
public:
ComplexTypeModelBinder(System::Collections::Generic::IDictionary<Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^> ^ propertyBinders, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public ComplexTypeModelBinder (System.Collections.Generic.IDictionary<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata,Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder> propertyBinders, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ComplexTypeModelBinder : System.Collections.Generic.IDictionary<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ComplexTypeModelBinder
Public Sub New (propertyBinders As IDictionary(Of ModelMetadata, IModelBinder), loggerFactory As ILoggerFactory)
パラメーター
- propertyBinders
- IDictionary<ModelMetadata,IModelBinder>
IDictionary<TKey,TValue>バインド プロパティに使用するバインダーの 。
- loggerFactory
- ILoggerFactory
注釈
バインドされていない最上位モデルが の場合IsBindingRequiredtrue
でも、バインダーはエラーを追加しません。
適用対象
ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>, ILoggerFactory, Boolean)
新しい ComplexTypeModelBinder を作成します。
public:
ComplexTypeModelBinder(System::Collections::Generic::IDictionary<Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^> ^ propertyBinders, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, bool allowValidatingTopLevelNodes);
public ComplexTypeModelBinder (System.Collections.Generic.IDictionary<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata,Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder> propertyBinders, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ComplexTypeModelBinder : System.Collections.Generic.IDictionary<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder> * Microsoft.Extensions.Logging.ILoggerFactory * bool -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ComplexTypeModelBinder
Public Sub New (propertyBinders As IDictionary(Of ModelMetadata, IModelBinder), loggerFactory As ILoggerFactory, allowValidatingTopLevelNodes As Boolean)
パラメーター
- propertyBinders
- IDictionary<ModelMetadata,IModelBinder>
IDictionary<TKey,TValue>バインド プロパティに使用するバインダーの 。
- loggerFactory
- ILoggerFactory
- allowValidatingTopLevelNodes
- Boolean
最上位モデルの検証が有効になっていることを示します。 と IsBindingRequired がtrue
最上位モデルの場合true
、モデルがバインドされていないときにバインダーによってエラーが追加ModelStateDictionaryされます。
注釈
パラメーターは allowValidatingTopLevelNodes
現在無視されています。