Compartir a través de


ControllerBase.CreatedAtAction Método

Definición

Sobrecargas

CreatedAtAction(String, Object)

Crea un CreatedAtActionResult objeto que genera una Status201Created respuesta.

CreatedAtAction(String, Object, Object)

Crea un CreatedAtActionResult objeto que genera una Status201Created respuesta.

CreatedAtAction(String, String, Object, Object)

Crea un CreatedAtActionResult objeto que genera una Status201Created respuesta.

CreatedAtAction(String, Object)

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

Crea un CreatedAtActionResult objeto que genera una Status201Created respuesta.

public:
 virtual Microsoft::AspNetCore::Mvc::CreatedAtActionResult ^ CreatedAtAction(System::String ^ actionName, System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedAtActionResult CreatedAtAction (string actionName, object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedAtActionResult CreatedAtAction (string? actionName, object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member CreatedAtAction : string * obj -> Microsoft.AspNetCore.Mvc.CreatedAtActionResult
override this.CreatedAtAction : string * obj -> Microsoft.AspNetCore.Mvc.CreatedAtActionResult
Public Overridable Function CreatedAtAction (actionName As String, value As Object) As CreatedAtActionResult

Parámetros

actionName
String

Nombre de la acción que se va a usar para generar la dirección URL.

value
Object

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

Devoluciones

objeto creado CreatedAtActionResult para la respuesta.

Atributos

Se aplica a

CreatedAtAction(String, Object, Object)

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

Crea un CreatedAtActionResult objeto que genera una Status201Created respuesta.

public:
 virtual Microsoft::AspNetCore::Mvc::CreatedAtActionResult ^ CreatedAtAction(System::String ^ actionName, System::Object ^ routeValues, System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedAtActionResult CreatedAtAction (string actionName, object routeValues, object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedAtActionResult CreatedAtAction (string? actionName, object? routeValues, object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member CreatedAtAction : string * obj * obj -> Microsoft.AspNetCore.Mvc.CreatedAtActionResult
override this.CreatedAtAction : string * obj * obj -> Microsoft.AspNetCore.Mvc.CreatedAtActionResult
Public Overridable Function CreatedAtAction (actionName As String, routeValues As Object, value As Object) As CreatedAtActionResult

Parámetros

actionName
String

Nombre de la acción que se va a usar para generar la dirección URL.

routeValues
Object

Los datos de ruta que se usa para generar la dirección URL.

value
Object

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

Devoluciones

objeto creado CreatedAtActionResult para la respuesta.

Atributos

Se aplica a

CreatedAtAction(String, String, Object, Object)

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

Crea un CreatedAtActionResult objeto que genera una Status201Created respuesta.

public:
 virtual Microsoft::AspNetCore::Mvc::CreatedAtActionResult ^ CreatedAtAction(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedAtActionResult CreatedAtAction (string actionName, string controllerName, object routeValues, object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedAtActionResult CreatedAtAction (string? actionName, string? controllerName, object? routeValues, object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member CreatedAtAction : string * string * obj * obj -> Microsoft.AspNetCore.Mvc.CreatedAtActionResult
override this.CreatedAtAction : string * string * obj * obj -> Microsoft.AspNetCore.Mvc.CreatedAtActionResult
Public Overridable Function CreatedAtAction (actionName As String, controllerName As String, routeValues As Object, value As Object) As CreatedAtActionResult

Parámetros

actionName
String

Nombre de la acción que se va a usar para generar la dirección URL.

controllerName
String

Nombre del controlador que se va a usar para generar la dirección URL.

routeValues
Object

Los datos de ruta que se usa para generar la dirección URL.

value
Object

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

Devoluciones

objeto creado CreatedAtActionResult para la respuesta.

Atributos

Se aplica a