Partager via


ODataPathRouteConstraint.SelectControllerName Method (ODataPath, HttpRequestMessage)

 

Selects the name of the controller to dispatch the request to.

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

Syntax

protected virtual string SelectControllerName(
    ODataPath path,
    HttpRequestMessage request
)
protected:
virtual String^ SelectControllerName(
    ODataPath^ path,
    HttpRequestMessage^ request
)
abstract SelectControllerName : 
        path:ODataPath *
        request:HttpRequestMessage -> string
override SelectControllerName : 
        path:ODataPath *
        request:HttpRequestMessage -> string
Protected Overridable Function SelectControllerName (
    path As ODataPath,
    request As HttpRequestMessage
) As String

Parameters

Return Value

Type: System.String

The name of the controller to dispatch to, or null if one cannot be resolved.

See Also

ODataPathRouteConstraint Class
System.Web.OData.Routing Namespace

Return to top