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)

Syntax

'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)
protected override CachedDataAnnotationsModelMetadata CreateMetadataFromPrototype(
    CachedDataAnnotationsModelMetadata prototype,
    Func<Object> modelAccessor
)
protected:
virtual CachedDataAnnotationsModelMetadata^ CreateMetadataFromPrototype(
    CachedDataAnnotationsModelMetadata^ prototype, 
    Func<Object^>^ modelAccessor
) override
abstract CreateMetadataFromPrototype : 
        prototype:CachedDataAnnotationsModelMetadata * 
        modelAccessor:Func<Object> -> CachedDataAnnotationsModelMetadata  
override CreateMetadataFromPrototype : 
        prototype:CachedDataAnnotationsModelMetadata * 
        modelAccessor:Func<Object> -> CachedDataAnnotationsModelMetadata
protected override function CreateMetadataFromPrototype(
    prototype : CachedDataAnnotationsModelMetadata, 
    modelAccessor : Func<Object>
) : CachedDataAnnotationsModelMetadata

Parameters

Return Value

Type: System.Web.Mvc.CachedDataAnnotationsModelMetadata
A container of real instances of the cached metadata class.

See Also

Reference

CachedDataAnnotationsModelMetadataProvider Class

System.Web.Mvc Namespace