ApiController.Ok<T> Method (T)

Creates an OkNegotiatedContentResult<T> with the specified values.

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

protected internal virtual OkNegotiatedContentResult<T> Ok<T>(
	T content
)

Type Parameters

T

The type of content in the entity body.

Parameters

content
Type: T
The content value to negotiate and format in the entity body.
Show: