Share via


BindingInfo.TryApplyBindingInfo(ModelMetadata) Method

Definition

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.

Applies to