BindingMetadata Class

Definition

Binding metadata details for a ModelMetadata.

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

Constructors

BindingMetadata()

Properties

BinderModelName

Gets or sets the binder model name. If null the property or parameter name will be used. See BinderModelName.

BinderType

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

BindingSource

Gets or sets the BindingSource. See BindingSource.

BoundConstructor

Gets or sets the ConstructorInfo used to model bind and validate the model type.

IsBindingAllowed

Gets or sets a value indicating whether or not the property can be model bound. Will be ignored if the model metadata being created does not represent a property. See IsBindingAllowed.

IsBindingRequired

Gets or sets a value indicating whether or not the request must contain a value for the model. Will be ignored if the model metadata being created does not represent a property. See IsBindingRequired.

IsReadOnly

Gets or sets a value indicating whether or not the model is read-only. Will be ignored if the model metadata being created is not a property. If null then IsReadOnly will be computed based on the accessibility of the property accessor and model Type. See IsReadOnly.

ModelBindingMessageProvider

Gets the DefaultModelBindingMessageProvider instance. See ModelBindingMessageProvider.

PropertyFilterProvider

Gets or sets the IPropertyFilterProvider. See PropertyFilterProvider.

Applies to