Taal

AssociatedMetadataProvider.GetMetadataForType Methode

Definitie

Wanneer deze worden overschreven in een afgeleide klasse, worden metagegevens geretourneerd voor het modeltype.

public:
 override System::Web::ModelBinding::ModelMetadata ^ GetMetadataForType(Func<System::Object ^> ^ modelAccessor, Type ^ modelType);
public override System.Web.ModelBinding.ModelMetadata GetMetadataForType(Func<object> modelAccessor, Type modelType);
override this.GetMetadataForType : Func<obj> * Type -> System.Web.ModelBinding.ModelMetadata
Public Overrides Function GetMetadataForType (modelAccessor As Func(Of Object), modelType As Type) As ModelMetadata

Parameters

modelAccessor
Func<Object>

De modeltoegangsfunctie.

modelType
Type

Het type model.

Retouren

Metagegevens voor het modeltype.

Uitzonderingen

De modelType parameter is null.

Van toepassing op