CachedDataAnnotationsModelMetadataProvider.CreateMetadataFromPrototype Method
Returns a container of real instances of the cached metadata class based on prototype and model accessor.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Protected Overrides Function CreateMetadataFromPrototype ( _ prototype As CachedDataAnnotationsModelMetadata, _ modelAccessor As Func(Of Object) _ ) As CachedDataAnnotationsModelMetadata 'Usage Dim prototype As CachedDataAnnotationsModelMetadata Dim modelAccessor As Func(Of Object) Dim returnValue As CachedDataAnnotationsModelMetadata returnValue = Me.CreateMetadataFromPrototype(prototype, _ modelAccessor)
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: