Share via


IODataRoutingConvention.SelectController Method

Definition

Selects the controller for OData requests.

public string SelectController (Microsoft.AspNet.OData.Routing.ODataPath odataPath, System.Net.Http.HttpRequestMessage request);
abstract member SelectController : Microsoft.AspNet.OData.Routing.ODataPath * System.Net.Http.HttpRequestMessage -> string
Public Function SelectController (odataPath As ODataPath, request As HttpRequestMessage) As String

Parameters

odataPath
ODataPath

The OData path.

request
HttpRequestMessage

The request.

Returns

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

Applies to