ODataPathRouteConstraint.SelectControllerName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Selects the name of the controller to dispatch the request to.
protected virtual string SelectControllerName (Microsoft.AspNet.OData.Routing.ODataPath path, System.Net.Http.HttpRequestMessage request);
abstract member SelectControllerName : Microsoft.AspNet.OData.Routing.ODataPath * System.Net.Http.HttpRequestMessage -> string
override this.SelectControllerName : Microsoft.AspNet.OData.Routing.ODataPath * System.Net.Http.HttpRequestMessage -> string
Protected Overridable Function SelectControllerName (path As ODataPath, request As HttpRequestMessage) As String
Parameters
- path
- ODataPath
The OData path of the request.
- request
- HttpRequestMessage
The request.
Returns
The name of the controller to dispatch to, or null
if one cannot be resolved.
Remarks
This signature uses types that are AspNet-specific.