Compartir a través de


ControllerBase.Created Método

Definición

Sobrecargas

Created()

Crea un CreatedResult objeto que genera una Status201Created respuesta.

Created(String, Object)

Crea un CreatedResult objeto que genera una Status201Created respuesta.

Created(Uri, Object)

Crea un CreatedResult objeto que genera una Status201Created respuesta.

Created()

Source:
ControllerBase.cs

Crea un CreatedResult objeto que genera una Status201Created respuesta.

[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

Devoluciones

creado CreatedResult para la respuesta.

Atributos

Se aplica a

Created(String, Object)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crea un CreatedResult objeto que genera una Status201Created respuesta.

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

Parámetros

uri
String

Identificador URI en el que se ha creado el contenido.

value
Object

El valor de contenido que se debe formatear en el cuerpo de la entidad.

Devoluciones

creado CreatedResult para la respuesta.

Atributos

Se aplica a

Created(Uri, Object)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crea un CreatedResult objeto que genera una Status201Created respuesta.

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

Parámetros

uri
Uri

Identificador URI en el que se ha creado el contenido.

value
Object

El valor de contenido que se debe formatear en el cuerpo de la entidad.

Devoluciones

creado CreatedResult para la respuesta.

Atributos

Se aplica a