CachedAssociatedMetadataProvider<TModelMetadata>.GetMetadataForType Method (Func<Object>, Type)
Returns the cached metadata for the specified property using the type of the model.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public override sealed ModelMetadata GetMetadataForType(
Func<object> modelAccessor,
Type modelType
)
public:
virtual ModelMetadata^ GetMetadataForType(
Func<Object^>^ modelAccessor,
Type^ modelType
) override sealed
override GetMetadataForType :
modelAccessor:Func<Object> *
modelType:Type -> ModelMetadata
Public Overrides NotOverridable Function GetMetadataForType (
modelAccessor As Func(Of Object),
modelType As Type
) As ModelMetadata
Parameters
modelAccessor
Type: System.Func<Object>The model accessor.
modelType
Type: System.TypeThe type of the container.
Return Value
Type: System.Web.Mvc.ModelMetadata
The cached metadata for the specified property using the type of the model.
See Also
CachedAssociatedMetadataProvider<TModelMetadata> Class
System.Web.Mvc Namespace
Return to top