ComplexTypeModelBinder Constructors

Definition

Overloads

ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>)
Obsolete.

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

Creates a new ComplexTypeModelBinder.

ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>, ILoggerFactory)

Creates a new ComplexTypeModelBinder.

ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>, ILoggerFactory, Boolean)

Creates a new ComplexTypeModelBinder.

ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>)

Source:
ComplexTypeModelBinder.cs
Source:
ComplexTypeModelBinder.cs

Caution

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

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

Creates a new 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))

Parameters

propertyBinders
IDictionary<ModelMetadata,IModelBinder>

The IDictionary<TKey,TValue> of binders to use for binding properties.

Attributes

Applies to

ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>, ILoggerFactory)

Source:
ComplexTypeModelBinder.cs
Source:
ComplexTypeModelBinder.cs

Creates a new 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)

Parameters

propertyBinders
IDictionary<ModelMetadata,IModelBinder>

The IDictionary<TKey,TValue> of binders to use for binding properties.

loggerFactory
ILoggerFactory

The ILoggerFactory.

Remarks

The binder will not add an error for an unbound top-level model even if IsBindingRequired is true.

Applies to

ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>, ILoggerFactory, Boolean)

Source:
ComplexTypeModelBinder.cs

Creates a new 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)

Parameters

propertyBinders
IDictionary<ModelMetadata,IModelBinder>

The IDictionary<TKey,TValue> of binders to use for binding properties.

loggerFactory
ILoggerFactory

The ILoggerFactory.

allowValidatingTopLevelNodes
Boolean

Indication that validation of top-level models is enabled. If true and IsBindingRequired is true for a top-level model, the binder adds a ModelStateDictionary error when the model is not bound.

Remarks

The allowValidatingTopLevelNodes parameter is currently ignored.

Applies to