Share via


AsyncEntitySetController<TEntity, TKey>.HandleUnmappedRequest Method

This method should be overridden to handle all unmapped OData requests.

Namespace:  System.Web.Http.OData
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
<AcceptVerbsAttribute()> _
Public Overridable Function HandleUnmappedRequest ( _
    odataPath As ODataPath _
) As Task(Of HttpResponseMessage)
'Usage
Dim instance As AsyncEntitySetController 
Dim odataPath As ODataPath 
Dim returnValue As Task(Of HttpResponseMessage)

returnValue = instance.HandleUnmappedRequest(odataPath)
[AcceptVerbsAttribute()]
public virtual Task<HttpResponseMessage> HandleUnmappedRequest(
    ODataPath odataPath
)
[AcceptVerbsAttribute()]
public:
virtual Task<HttpResponseMessage^>^ HandleUnmappedRequest(
    ODataPath^ odataPath
)
[<AcceptVerbsAttribute()>]
abstract HandleUnmappedRequest : 
        odataPath:ODataPath -> Task<HttpResponseMessage> 
[<AcceptVerbsAttribute()>]
override HandleUnmappedRequest : 
        odataPath:ODataPath -> Task<HttpResponseMessage> 
public function HandleUnmappedRequest(
    odataPath : ODataPath
) : Task<HttpResponseMessage>

Parameters

Return Value

Type: System.Threading.Tasks.Task<HttpResponseMessage>
A Task that contains the response message to send back to the client when it completes.

See Also

Reference

AsyncEntitySetController<TEntity, TKey> Class

System.Web.Http.OData Namespace