Compartilhar via


EmptyModelMetadataProvider.CreateMetadataPrototype Method

Creates a prototype of the metadata provider of the EmptyModelMetadataProvider.

Namespace:  System.Web.Http.Metadata.Providers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

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

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

Parameters

  • containerType
    Type: System.Type

    The type of container.

Return Value

Type: System.Web.Http.Metadata.ModelMetadata
A prototype of the metadata provider.

See Also

Reference

EmptyModelMetadataProvider Class

System.Web.Http.Metadata.Providers Namespace