CachedAssociatedMetadataProvider<TModelMetadata>.GetMetadataForType Method (Func<Object>, Type)
Returns the cached metadata for the specified property using the type of the model.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
public override sealed ModelMetadata GetMetadataForType( Func<object> modelAccessor, Type modelType )
Parameters
- modelAccessor
-
Type:
System.Func<Object>
The model accessor.
- modelType
-
Type:
System.Type
The type of the container.
Return Value
Type: System.Web.Mvc.ModelMetadataThe cached metadata for the specified property using the type of the model.
Show: