DefaultModelMetadataProvider.CreateModelMetadata 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.
Creates a new ModelMetadata from a DefaultMetadataDetails.
protected:
virtual Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ CreateModelMetadata(Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::DefaultMetadataDetails ^ entry);
protected virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata CreateModelMetadata (Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails entry);
abstract member CreateModelMetadata : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
override this.CreateModelMetadata : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
Protected Overridable Function CreateModelMetadata (entry As DefaultMetadataDetails) As ModelMetadata
Parameters
- entry
- DefaultMetadataDetails
The DefaultMetadataDetails entry with cached data.
Returns
A new ModelMetadata instance.
Remarks
DefaultModelMetadataProvider will always create instances of DefaultModelMetadata .Override this method to create a ModelMetadata of a different concrete type.