BindingInfo Class

Binding info which represents metadata associated to an action parameter.

Namespace
Microsoft.AspNetCore.Mvc.ModelBinding
Assemblies
  • Microsoft.AspNetCore.Mvc.Abstractions

Syntax

public class BindingInfo
class Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo

Constructors

BindingInfo()

Creates a new Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo.

public BindingInfo()
BindingInfo(Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo)

Creates a copy of a Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo.

Arguments:other (Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo) – The Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo to copy.
public BindingInfo(BindingInfo other)

Properties

Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo.BinderModelName

Gets or sets the binder model name.

Return type:System.String
public string BinderModelName { get; set; }
Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo.BinderType

Gets or sets the System.Type of the model binder used to bind the model.

Return type:System.Type
public Type BinderType { get; set; }
Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo.BindingSource

Gets or sets the Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource.

Return type:Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource
public BindingSource BindingSource { get; set; }
Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo.PropertyFilterProvider

Gets or sets the Microsoft.AspNetCore.Mvc.ModelBinding.IPropertyFilterProvider.

Return type:Microsoft.AspNetCore.Mvc.ModelBinding.IPropertyFilterProvider
public IPropertyFilterProvider PropertyFilterProvider { get; set; }

Methods

GetBindingInfo(System.Collections.Generic.IEnumerable<System.Object>)

Constructs a new instance of Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo from the given <em>attributes</em>.

Arguments:attributes (System.Collections.Generic.IEnumerable<System.Object>) – A collection of attributes which are used to construct Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo
Return type:Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo
Returns:A new instance of Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo.
public static BindingInfo GetBindingInfo(IEnumerable<object> attributes)