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.Created Method

 

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

NameDescription
System_CAPS_protmethodCreated<T>(String, T)

Creates a CreatedNegotiatedContentResult<T> (201 Created) with the specified values.

System_CAPS_protmethodCreated<T>(Uri, T)

Creates a CreatedNegotiatedContentResult<T> (201 Created) with the specified values.

Return to top

ApiController.Created<T> Method (String, T)

Creates a CreatedNegotiatedContentResult<T> (201 Created) with the specified values.

protected internal CreatedNegotiatedContentResult<T> Created<T>(
	string location,
	T content
)

Parameters

location
Type: System.String

The location at which the content has been created.

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

ApiController.Created<T> Method (Uri, T)

Creates a CreatedNegotiatedContentResult<T> (201 Created) with the specified values.

protected internal virtual CreatedNegotiatedContentResult<T> Created<T>(
	Uri location,
	T content
)

Parameters

location
Type: System.Uri

The location at which the content has been created.

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: