Share via


CachedDataAnnotationsModelMetadata Constructor (CachedDataAnnotationsModelMetadata, Func<Object>)

Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the prototype and model accessor.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Sub New ( _
    prototype As CachedDataAnnotationsModelMetadata, _
    modelAccessor As Func(Of Object) _
)
'Usage
Dim prototype As CachedDataAnnotationsModelMetadata 
Dim modelAccessor As Func(Of Object)

Dim instance As New CachedDataAnnotationsModelMetadata(prototype, _
    modelAccessor)
public CachedDataAnnotationsModelMetadata(
    CachedDataAnnotationsModelMetadata prototype,
    Func<Object> modelAccessor
)
public:
CachedDataAnnotationsModelMetadata(
    CachedDataAnnotationsModelMetadata^ prototype, 
    Func<Object^>^ modelAccessor
)
new : 
        prototype:CachedDataAnnotationsModelMetadata * 
        modelAccessor:Func<Object> -> CachedDataAnnotationsModelMetadata
public function CachedDataAnnotationsModelMetadata(
    prototype : CachedDataAnnotationsModelMetadata, 
    modelAccessor : Func<Object>
)

Parameters

See Also

Reference

CachedDataAnnotationsModelMetadata Class

CachedDataAnnotationsModelMetadata Overload

System.Web.Mvc Namespace