Compartilhar via


EmptyModelMetadataProvider.CreateMetadata Método

Definição

Cria uma nova instância da classe ModelMetadata.

protected override System.Web.Mvc.ModelMetadata CreateMetadata (System.Collections.Generic.IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName);
override this.CreateMetadata : seq<Attribute> * Type * Func<obj> * Type * string -> System.Web.Mvc.ModelMetadata
Protected Overrides 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.

modelAccessor
Func<Object>

O acessador do modelo.

modelType
Type

O tipo do modelo.

propertyName
String

O nome do modelo.

Retornos

Uma nova instância da classe ModelMetadata.

Aplica-se a