Information
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)

NameDescription
System_CAPS_protmethodOk()

Creates an OkResult (200 OK).

System_CAPS_protmethodOk(Of T)(T)

Creates an OkNegotiatedContentResult(Of T) with the specified values.

Return to top

ApiController.Ok Method ()

Creates an OkResult (200 OK).

Protected Friend Overridable Function Ok As OkResult
Return to top

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.

Return to top
Show: