NavigationSourceRoutingConvention.SelectController Method (ODataPath, HttpRequestMessage)
Selects the controller for OData requests.
Namespace: System.Web.OData.Routing.Conventions
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public virtual string SelectController(
ODataPath odataPath,
HttpRequestMessage request
)
public:
virtual String^ SelectController(
ODataPath^ odataPath,
HttpRequestMessage^ request
)
abstract SelectController :
odataPath:ODataPath *
request:HttpRequestMessage -> string
override SelectController :
odataPath:ODataPath *
request:HttpRequestMessage -> string
Public Overridable Function SelectController (
odataPath As ODataPath,
request As HttpRequestMessage
) As String
Parameters
odataPath
Type: System.Web.OData.Routing.ODataPathThe OData path.
request
Type: System.Net.Http.HttpRequestMessageThe request.
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
NavigationSourceRoutingConvention Class
System.Web.OData.Routing.Conventions Namespace
Return to top