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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for