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
prototype
Type: System.Web.Mvc.CachedDataAnnotationsModelMetadataThe prototype.
modelAccessor
Type: System.Func<Object>The model accessor.
See Also
Reference
CachedDataAnnotationsModelMetadata Class