Partager via


OkResult Constructor

 

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

Overload List

Name Description
System_CAPS_pubmethod OkResult(ApiController)

Initializes a new instance of the NotFoundResult class.

System_CAPS_pubmethod 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

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

Return to top