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