DefaultHttpControllerSelector.GetControllerName Method (HttpRequestMessage)

 

Gets the name of the controller for the specified HttpRequestMessage.

Namespace:   System.Web.Http.Dispatcher
Assembly:  System.Web.Http (in System.Web.Http.dll)

public virtual string GetControllerName(
	HttpRequestMessage request
)

Parameters

request
Type: System.Net.Http.HttpRequestMessage

The HTTP request message.

Return Value

Type: System.String

The name of the controller for the specified HttpRequestMessage.

Return to top
Show: