ApiController::Ok Method
Namespace:
System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() | Ok() | Creates an OkResult (200 OK). |
![]() | Ok<T>(T) | Creates an OkNegotiatedContentResult<T> with the specified values. |
ApiController::Ok<T> Method (T)
Creates an OkNegotiatedContentResult<T> with the specified values.
public protected: generic<typename T> virtual OkNegotiatedContentResult<T>^ Ok( T content )
Parameters
- content
-
Type:
T
The content value to negotiate and format in the entity body.
Return Value
Type: System.Web.Http.Results::OkNegotiatedContentResult<T>^An OkNegotiatedContentResult<T> with the specified values.
Type Parameters
- T
The type of content in the entity body.
Show:
