Dela via


DefaultModelMetadataProvider.CreateModelMetadata Method

Definition

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