ComplexTypeModelBinder.CanBindProperty Method

Definition

Gets a value indicating whether or not the model property identified by propertyMetadata can be bound.

protected:
 virtual bool CanBindProperty(Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingContext ^ bindingContext, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ propertyMetadata);
protected virtual bool CanBindProperty (Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata propertyMetadata);
abstract member CanBindProperty : Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata -> bool
override this.CanBindProperty : Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata -> bool
Protected Overridable Function CanBindProperty (bindingContext As ModelBindingContext, propertyMetadata As ModelMetadata) As Boolean

Parameters

bindingContext
ModelBindingContext

The ModelBindingContext for the container model.

propertyMetadata
ModelMetadata

The ModelMetadata for the model property.

Returns

true if the model property can be bound, otherwise false.

Applies to