ApiController::Created Method
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() | Created<T>(String^, T) | Creates a CreatedNegotiatedContentResult<T> (201 Created) with the specified values. |
![]() | Created<T>(Uri^, T) | Creates a CreatedNegotiatedContentResult<T> (201 Created) with the specified values. |
ApiController::Created<T> Method (String^, T)
Creates a CreatedNegotiatedContentResult<T> (201 Created) with the specified values.
public protected: generic<typename T> CreatedNegotiatedContentResult<T>^ Created( 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.
Return Value
Type: System.Web.Http.Results::CreatedNegotiatedContentResult<T>^A CreatedNegotiatedContentResult<T> with the specified values.
Type Parameters
- T
The type of content in the entity body.
ApiController::Created<T> Method (Uri^, T)
Creates a CreatedNegotiatedContentResult<T> (201 Created) with the specified values.
public protected: generic<typename T> virtual CreatedNegotiatedContentResult<T>^ Created( 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.
Return Value
Type: System.Web.Http.Results::CreatedNegotiatedContentResult<T>^A CreatedNegotiatedContentResult<T> with the specified values.
Type Parameters
- T
The type of content in the entity body.
