Share via


BindingInfo Class

Definition

Binding info which represents metadata associated to an action parameter.

public ref class BindingInfo
public class BindingInfo
type BindingInfo = class
Public Class BindingInfo
Inheritance
BindingInfo

Constructors

BindingInfo()

Creates a new BindingInfo.

BindingInfo(BindingInfo)

Creates a copy of a BindingInfo.

Properties

BinderModelName

Gets or sets the binder model name.

BinderType

Gets or sets the Type of the IModelBinder implementation used to bind the model.

BindingSource

Gets or sets the BindingSource.

EmptyBodyBehavior

Gets or sets the value which decides if empty bodies are treated as valid inputs.

PropertyFilterProvider

Gets or sets the IPropertyFilterProvider.

RequestPredicate

Gets or sets a predicate which determines whether or not the model should be bound based on state from the current request.

ServiceKey

Get or sets the value used as the key when looking for a keyed service

Methods

GetBindingInfo(IEnumerable<Object>, ModelMetadata)

Constructs a new instance of BindingInfo from the given attributes and modelMetadata.

GetBindingInfo(IEnumerable<Object>)

Constructs a new instance of BindingInfo from the given attributes.

This overload does not account for BindingInfo specified via ModelMetadata. Consider using GetBindingInfo(IEnumerable<Object>, ModelMetadata) overload, or TryApplyBindingInfo(ModelMetadata) on the result of this method to get a more accurate BindingInfo instance.

TryApplyBindingInfo(ModelMetadata)

Applies binding metadata from the specified modelMetadata.

Uses values from modelMetadata if no value is already available.

Applies to