CachedDataAnnotationsModelMetadataProvider.CreateMetadataPrototype Method

Returns a container prototype instances of the metadata class.

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

'Declaration
Protected Overrides Function CreateMetadataPrototype ( _
	attributes As IEnumerable(Of Attribute), _
	containerType As Type, _
	modelType As Type, _
	propertyName As String _
) As CachedDataAnnotationsModelMetadata
'Usage
Dim attributes As IEnumerable(Of Attribute)
Dim containerType As Type 
Dim modelType As Type 
Dim propertyName As String 
Dim returnValue As CachedDataAnnotationsModelMetadata 

returnValue = Me.CreateMetadataPrototype(attributes, _
	containerType, modelType, propertyName)

Parameters

attributes
Type: System.Collections.Generic.IEnumerable(Of Attribute)

The attributes type.

containerType
Type: System.Type

The container type.

modelType
Type: System.Type

The model type.

propertyName
Type: System.String

The property name.

Return Value

Type: System.Web.Mvc.CachedDataAnnotationsModelMetadata
a container prototype instances of the metadata class.
Show: