Share via


EmptyModelMetadataProvider.CreateMetadata Método

Definición

Crea una nueva instancia de la clase ModelMetadata.

protected:
 override System::Web::ModelBinding::ModelMetadata ^ CreateMetadata(System::Collections::Generic::IEnumerable<Attribute ^> ^ attributes, Type ^ containerType, Func<System::Object ^> ^ modelAccessor, Type ^ modelType, System::String ^ propertyName);
protected override System.Web.ModelBinding.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.ModelBinding.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>

Atributos.

containerType
Type

Tipo del contenedor o null si no hay ningún contenedor.

modelAccessor
Func<Object>

Descriptor de acceso del modelo.

modelType
Type

Tipo del modelo.

propertyName
String

Nombre de la propiedad o null si el modelo no es una propiedad.

Devoluciones

Objeto de metadatos vacío.

Se aplica a