ComplexTypeModelBinder.CanBindProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.