DefaultModelMetadataProvider.CreatePropertyDetails Method

Definition

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

key
ModelMetadataIdentity

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.

Applies to