DefaultModelMetadataProvider.CreatePropertyDetails 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 the DefaultMetadataDetails entries for the properties of a model Type.
protected:
virtual cli::array <Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::DefaultMetadataDetails ^> ^ CreatePropertyDetails(Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelMetadataIdentity key);
protected virtual Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails[] CreatePropertyDetails (Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key);
abstract member CreatePropertyDetails : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails[]
override this.CreatePropertyDetails : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails[]
Protected Overridable Function CreatePropertyDetails (key As ModelMetadataIdentity) As DefaultMetadataDetails()
Parameters
The ModelMetadataIdentity identifying the model Type.
Returns
A details object for each property of the model Type.
Remarks
The results of this method will be cached and used to satisfy calls to GetMetadataForProperties(Type). Override this method to provide a different set of property data.