Condividi tramite


DefaultModelMetadataProvider.CreateModelMetadata Metodo

Definizione

Crea un nuovo oggetto ModelMetadata da un oggetto 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

Parametri

entry
DefaultMetadataDetails

Voce DefaultMetadataDetails con dati memorizzati nella cache.

Restituisce

Nuova istanza di ModelMetadata.

Commenti

DefaultModelMetadataProvider creerà sempre istanze di DefaultModelMetadata . Eseguire l'override di questo metodo per creare un ModelMetadata oggetto di un tipo concreto diverso.

Si applica a