CachedAssociatedMetadataProvider<TModelMetadata>.CreateMetadataPrototype Method

Creates a metadata prototype.

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

Syntax

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

returnValue = Me.CreateMetadataPrototype(attributes, _
    containerType, modelType, propertyName)
protected abstract TModelMetadata CreateMetadataPrototype(
    IEnumerable<Attribute> attributes,
    Type containerType,
    Type modelType,
    string propertyName
)
protected:
virtual TModelMetadata CreateMetadataPrototype(
    IEnumerable<Attribute^>^ attributes, 
    Type^ containerType, 
    Type^ modelType, 
    String^ propertyName
) abstract
abstract CreateMetadataPrototype : 
        attributes:IEnumerable<Attribute> * 
        containerType:Type * 
        modelType:Type * 
        propertyName:string -> 'TModelMetadata 
protected abstract function CreateMetadataPrototype(
    attributes : IEnumerable<Attribute>, 
    containerType : Type, 
    modelType : Type, 
    propertyName : String
) : TModelMetadata

Parameters

Return Value

Type: TModelMetadata
A metadata prototype.

See Also

Reference

CachedAssociatedMetadataProvider<TModelMetadata> Class

System.Web.Mvc Namespace