Compartilhar via


ControllerBase.CreatedAtAction Método

Definição

Sobrecargas

CreatedAtAction(String, Object)

Cria um CreatedAtActionResult objeto que produz uma Status201Created resposta.

CreatedAtAction(String, Object, Object)

Cria um CreatedAtActionResult objeto que produz uma Status201Created resposta.

CreatedAtAction(String, String, Object, Object)

Cria um CreatedAtActionResult objeto que produz uma Status201Created resposta.

CreatedAtAction(String, Object)

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs
Origem:
ControllerBase.cs

Cria um CreatedAtActionResult objeto que produz uma Status201Created resposta.

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

O nome da ação a ser usada para gerar a URL.

value
Object

O valor de conteúdo a formatar no corpo da entidade.

Retornos

O criado CreatedAtActionResult para a resposta.

Atributos

Aplica-se a

CreatedAtAction(String, Object, Object)

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs
Origem:
ControllerBase.cs

Cria um CreatedAtActionResult objeto que produz uma Status201Created resposta.

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

O nome da ação a ser usada para gerar a URL.

routeValues
Object

Os dados da rota a serem usados para gerar a URL.

value
Object

O valor de conteúdo a formatar no corpo da entidade.

Retornos

O criado CreatedAtActionResult para a resposta.

Atributos

Aplica-se a

CreatedAtAction(String, String, Object, Object)

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs
Origem:
ControllerBase.cs

Cria um CreatedAtActionResult objeto que produz uma Status201Created resposta.

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

O nome da ação a ser usada para gerar a URL.

controllerName
String

O nome do controlador a ser usado para gerar a URL.

routeValues
Object

Os dados da rota a serem usados para gerar a URL.

value
Object

O valor de conteúdo a formatar no corpo da entidade.

Retornos

O criado CreatedAtActionResult para a resposta.

Atributos

Aplica-se a