Share via


MetadataRoutingConvention.SelectController Method (ODataPath, HttpRequestMessage)

 

Selects the controller for OData requests.

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

Syntax

public string SelectController(
    ODataPath odataPath,
    HttpRequestMessage request
)
public:
virtual String^ SelectController(
    ODataPath^ odataPath,
    HttpRequestMessage^ request
) sealed
abstract SelectController : 
        odataPath:ODataPath *
        request:HttpRequestMessage -> string
override SelectController : 
        odataPath:ODataPath *
        request:HttpRequestMessage -> string
Public Function SelectController (
    odataPath As ODataPath,
    request As HttpRequestMessage
) As String

Parameters

Return Value

Type: System.String

null if the request isn't handled by this convention; otherwise, the name of the selected controller

Implements

IODataRoutingConvention.SelectController(ODataPath, HttpRequestMessage)

See Also

MetadataRoutingConvention Class
System.Web.Http.OData.Routing.Conventions Namespace

Return to top