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
attributes
Type: System.Collections.Generic.IEnumerable<Attribute>The attributes.
containerType
Type: System.TypeThe type of container.
modelType
Type: System.TypeThe type of model.
propertyName
Type: System.StringThe name of the property.
Return Value
Type: System.Web.Http.Metadata.ModelMetadata
A prototype of the metadata provider.