ControllerBase.Created Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Created() |
Creates a CreatedResult object that produces a Status201Created response. |
Created(String, Object) |
Creates a CreatedResult object that produces a Status201Created response. |
Created(Uri, Object) |
Creates a CreatedResult object that produces a Status201Created response. |
Created()
- Source:
- ControllerBase.cs
Creates a CreatedResult object that produces a Status201Created response.
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Created : unit -> Microsoft.AspNetCore.Mvc.CreatedResult
override this.Created : unit -> Microsoft.AspNetCore.Mvc.CreatedResult
Public Overridable Function Created () As CreatedResult
Returns
The created CreatedResult for the response.
- Attributes
Applies to
Created(String, Object)
- Source:
- ControllerBase.cs
- Source:
- ControllerBase.cs
- Source:
- ControllerBase.cs
Creates a CreatedResult object that produces a Status201Created response.
public:
virtual Microsoft::AspNetCore::Mvc::CreatedResult ^ Created(System::String ^ uri, System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (string uri, object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (string uri, object? value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (string? uri, object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Created : string * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
override this.Created : string * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
Public Overridable Function Created (uri As String, value As Object) As CreatedResult
Parameters
- uri
- String
The URI at which the content has been created.
- value
- Object
The content value to format in the entity body.
Returns
The created CreatedResult for the response.
- Attributes
Applies to
Created(Uri, Object)
- Source:
- ControllerBase.cs
- Source:
- ControllerBase.cs
- Source:
- ControllerBase.cs
Creates a CreatedResult object that produces a Status201Created response.
public:
virtual Microsoft::AspNetCore::Mvc::CreatedResult ^ Created(Uri ^ uri, System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (Uri uri, object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (Uri uri, object? value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (Uri? uri, object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Created : Uri * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
override this.Created : Uri * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
Public Overridable Function Created (uri As Uri, value As Object) As CreatedResult
Parameters
- uri
- Uri
The URI at which the content has been created.
- value
- Object
The content value to format in the entity body.
Returns
The created CreatedResult for the response.
- Attributes