Compartilhar via


AssociatedMetadataProvider<TModelMetadata>.CreateMetadataPrototype Method

When overridden in a derived class, creates the model metadata for the property.

Namespace:  System.Web.Http.Metadata.Providers
Assembly:  System.Web.Http (in System.Web.Http.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

  • containerType
    Type: System.Type

    The type of the container.

Return Value

Type: TModelMetadata
The model metadata for the property.

See Also

Reference

AssociatedMetadataProvider<TModelMetadata> Class

System.Web.Http.Metadata.Providers Namespace