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)

Syntax

'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)
protected override CachedDataAnnotationsModelMetadata CreateMetadataPrototype(
    IEnumerable<Attribute> attributes,
    Type containerType,
    Type modelType,
    string propertyName
)
protected:
virtual CachedDataAnnotationsModelMetadata^ CreateMetadataPrototype(
    IEnumerable<Attribute^>^ attributes, 
    Type^ containerType, 
    Type^ modelType, 
    String^ propertyName
) override
abstract CreateMetadataPrototype : 
        attributes:IEnumerable<Attribute> * 
        containerType:Type * 
        modelType:Type * 
        propertyName:string -> CachedDataAnnotationsModelMetadata  
override CreateMetadataPrototype : 
        attributes:IEnumerable<Attribute> * 
        containerType:Type * 
        modelType:Type * 
        propertyName:string -> CachedDataAnnotationsModelMetadata
protected override function CreateMetadataPrototype(
    attributes : IEnumerable<Attribute>, 
    containerType : Type, 
    modelType : Type, 
    propertyName : String
) : CachedDataAnnotationsModelMetadata

Parameters

Return Value

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

See Also

Reference

CachedDataAnnotationsModelMetadataProvider Class

System.Web.Mvc Namespace