CachedDataAnnotationsModelMetadataProvider.CreateMetadataFromPrototype Method (CachedDataAnnotationsModelMetadata, Func(Of Object))
Returns a container of real instances of the cached metadata class based on prototype and model accessor.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Protected Overrides Function CreateMetadataFromPrototype ( prototype As CachedDataAnnotationsModelMetadata, modelAccessor As Func(Of Object) ) As CachedDataAnnotationsModelMetadata
Parameters
- prototype
-
Type:
System.Web.Mvc.CachedDataAnnotationsModelMetadata
The prototype.
- modelAccessor
-
Type:
System.Func(Of Object)
The model accessor.
Return Value
Type: System.Web.Mvc.CachedDataAnnotationsModelMetadataA container of real instances of the cached metadata class.
Show: