AssociatedMetadataProvider.CreateMetadata Método

Definição

Quando sobrescrito numa classe derivada, cria metadados para um modelo.

protected:
 abstract System::Web::ModelBinding::ModelMetadata ^ CreateMetadata(System::Collections::Generic::IEnumerable<Attribute ^> ^ attributes, Type ^ containerType, Func<System::Object ^> ^ modelAccessor, Type ^ modelType, System::String ^ propertyName);
protected abstract System.Web.ModelBinding.ModelMetadata CreateMetadata(System.Collections.Generic.IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName);
abstract member CreateMetadata : seq<Attribute> * Type * Func<obj> * Type * string -> System.Web.ModelBinding.ModelMetadata
Protected MustOverride Function CreateMetadata (attributes As IEnumerable(Of Attribute), containerType As Type, modelAccessor As Func(Of Object), modelType As Type, propertyName As String) As ModelMetadata

Parâmetros

attributes
IEnumerable<Attribute>

Os atributos.

containerType
Type

O tipo do recipiente, ou null se não houver recipiente.

modelAccessor
Func<Object>

O acessório de modelo.

modelType
Type

O tipo de modelo.

propertyName
String

O nome da propriedade, ou null se o modelo não for propriedade.

Devoluções

Metadados para um modelo.

Aplica-se a