CachedDataAnnotationsModelMetadata Constructor (CachedDataAnnotationsModelMetadata, Func(Of 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)

'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)

Parameters

prototype
Type: System.Web.Mvc.CachedDataAnnotationsModelMetadata

The prototype.

modelAccessor
Type: System.Func(Of Object)

The model accessor.

Show: