Condividi tramite


EmptyModelMetadataProvider.CreateMetadata Metodo

Definizione

Crea una nuova istanza della classe 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

Parametri

attributes
IEnumerable<Attribute>

Attributi.

containerType
Type

Tipo del contenitore, o null se non c'è un contenitore.

modelAccessor
Func<Object>

Funzione di accesso del modello.

modelType
Type

Tipo del modello.

propertyName
String

Nome della proprietà o null se il modello non è una proprietà.

Restituisce

ModelMetadata

Oggetto di metadati vuoto.

Si applica a