Compartilhar via


ApiController.CreatedAtRoute(String, Object, Object) Método

Definição

Cria um CreatedAtRouteResult (201 Criado) com os valores especificados.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedAtRouteResult CreatedAtRoute (string routeName, object routeValues, object content);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member CreatedAtRoute : string * obj * obj -> Microsoft.AspNetCore.Mvc.CreatedAtRouteResult
override this.CreatedAtRoute : string * obj * obj -> Microsoft.AspNetCore.Mvc.CreatedAtRouteResult
Public Overridable Function CreatedAtRoute (routeName As String, routeValues As Object, content As Object) As CreatedAtRouteResult

Parâmetros

routeName
String

O nome da rota a ser usado para gerar a URL.

routeValues
Object

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

content
Object

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

Retornos

Um CreatedAtRouteResult com os valores especificados.

Atributos

Aplica-se a