DefaultHttpControllerSelector.GetControllerName Method
Gets the name of the controller for the specified HttpRequestMessage.
Namespace: System.Web.Http.Dispatcher
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overridable Function GetControllerName ( _
request As HttpRequestMessage _
) As String
'Usage
Dim instance As DefaultHttpControllerSelector
Dim request As HttpRequestMessage
Dim returnValue As String
returnValue = instance.GetControllerName(request)
public virtual string GetControllerName(
HttpRequestMessage request
)
public:
virtual String^ GetControllerName(
HttpRequestMessage^ request
)
abstract GetControllerName :
request:HttpRequestMessage -> string
override GetControllerName :
request:HttpRequestMessage -> string
public function GetControllerName(
request : HttpRequestMessage
) : String
Parameters
request
Type: HttpRequestMessageThe HTTP request message.
Return Value
Type: System.String
The name of the controller for the specified HttpRequestMessage.