AssociatedMetadataProvider.CreateMetadata Methode

Definitie

Wanneer deze worden overschreven in een afgeleide klasse, worden metagegevens voor een model gemaakt.

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

Parameters

attributes
IEnumerable<Attribute>

De kenmerken.

containerType
Type

Het type container of null als er geen container is.

modelAccessor
Func<Object>

De modeltoegangsfunctie.

modelType
Type

Het type model.

propertyName
String

De naam van de eigenschap of null als het model geen eigenschap is.

Retouren

Metagegevens voor een model.

Van toepassing op