EmptyModelMetadataProvider.CreateMetadataFromPrototype Method
Creates metadata from prototype.
Namespace: System.Web.Http.Metadata.Providers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Protected Overrides Function CreateMetadataFromPrototype ( _
prototype As ModelMetadata, _
modelAccessor As Func(Of Object) _
) As ModelMetadata
'Usage
Dim prototype As ModelMetadata
Dim modelAccessor As Func(Of Object)
Dim returnValue As ModelMetadata
returnValue = Me.CreateMetadataFromPrototype(prototype, _
modelAccessor)
protected override ModelMetadata CreateMetadataFromPrototype(
ModelMetadata prototype,
Func<Object> modelAccessor
)
protected:
virtual ModelMetadata^ CreateMetadataFromPrototype(
ModelMetadata^ prototype,
Func<Object^>^ modelAccessor
) override
abstract CreateMetadataFromPrototype :
prototype:ModelMetadata *
modelAccessor:Func<Object> -> ModelMetadata
override CreateMetadataFromPrototype :
prototype:ModelMetadata *
modelAccessor:Func<Object> -> ModelMetadata
protected override function CreateMetadataFromPrototype(
prototype : ModelMetadata,
modelAccessor : Func<Object>
) : ModelMetadata
Parameters
prototype
Type: System.Web.Http.Metadata.ModelMetadataThe model metadata prototype.
modelAccessor
Type: System.Func<Object>The model accessor.
Return Value
Type: System.Web.Http.Metadata.ModelMetadata
The metadata.