BindingInfo.TryApplyBindingInfo(ModelMetadata) 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.
Applies binding metadata from the specified modelMetadata
.
Uses values from modelMetadata
if no value is already available.
public:
bool TryApplyBindingInfo(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ modelMetadata);
public bool TryApplyBindingInfo (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata);
member this.TryApplyBindingInfo : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata -> bool
Public Function TryApplyBindingInfo (modelMetadata As ModelMetadata) As Boolean
Parameters
- modelMetadata
- ModelMetadata
The ModelMetadata.
Returns
true
if any binding metadata from modelMetadata
was applied;
false
otherwise.