The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
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(Of T)(T) | Creates an OkNegotiatedContentResult(Of T) with the specified values. |
ApiController.Ok(Of T) Method (T)
Creates an OkNegotiatedContentResult(Of T) with the specified values.
Protected Friend Overridable Function Ok(Of T) ( content As T ) As OkNegotiatedContentResult(Of T)
Parameters
- content
-
Type:
T
The content value to negotiate and format in the entity body.
Return Value
Type: System.Web.Http.Results.OkNegotiatedContentResult(Of T)An OkNegotiatedContentResult(Of T) with the specified values.
Type Parameters
- T
The type of content in the entity body.
Show:
