AssociatedMetadataProvider.GetMetadataForType Method (Func<Object>, Type)
.NET Framework (current version)
When overridden in a derived class, returns metadata for the model type.
Assembly: System.Web (in System.Web.dll)
override GetMetadataForType :
modelAccessor:Func<Object> *
modelType:Type -> ModelMetadata
Parameters
- modelAccessor
-
Type:
System.Func<Object>
The model accessor.
- modelType
-
Type:
System.Type
The type of the model.
| Exception | Condition |
|---|---|
| ArgumentNullException | The modelType parameter is null. |
.NET Framework
Available since 4.5
Available since 4.5
Show: