NotFoundResult Constructor
Namespace: System.Web.Http.Results
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
NotFoundResult(ApiController) | Initializes a new instance of the NotFoundResult class. |
|
NotFoundResult(HttpRequestMessage) | Initializes a new instance of the NotFoundResult class. |
See Also
NotFoundResult Class
System.Web.Http.Results Namespace
Return to top
NotFoundResult Constructor (ApiController)
Initializes a new instance of the NotFoundResult class.
Syntax
public NotFoundResult(
ApiController controller
)
public:
NotFoundResult(
ApiController^ controller
)
new :
controller:ApiController -> NotFoundResult
Public Sub New (
controller As ApiController
)
Parameters
controller
Type: System.Web.Http.ApiControllerThe controller from which to obtain the dependencies needed for execution.
Return to top
NotFoundResult Constructor (HttpRequestMessage)
Initializes a new instance of the NotFoundResult class.
Syntax
public NotFoundResult(
HttpRequestMessage request
)
public:
NotFoundResult(
HttpRequestMessage^ request
)
new :
request:HttpRequestMessage -> NotFoundResult
Public Sub New (
request As HttpRequestMessage
)
Parameters
request
Type: System.Net.Http.HttpRequestMessageThe request message which led to this result.
Return to top