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<T>(T)

Creates an OkNegotiatedContentResult<T> with the specified values.

Return to top

ApiController::Ok Method ()

Creates an OkResult (200 OK).

public protected:
virtual OkResult^ Ok()
Return to top

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.

Type Parameters

T

The type of content in the entity body.

Return to top
Show: