Compartilhar via


ControllerBase.CreatedAtRoute Método

Definição

Sobrecargas

CreatedAtRoute(String, Object, Object)

Cria um CreatedAtRouteResult objeto que produz uma Status201Created resposta.

CreatedAtRoute(String, Object)

Cria um CreatedAtRouteResult objeto que produz uma Status201Created resposta.

CreatedAtRoute(Object, Object)

Cria um CreatedAtRouteResult objeto que produz uma Status201Created resposta.

CreatedAtRoute(String, Object, Object)

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

Cria um CreatedAtRouteResult objeto que produz uma Status201Created resposta.

public:
 virtual Microsoft::AspNetCore::Mvc::CreatedAtRouteResult ^ CreatedAtRoute(System::String ^ routeName, System::Object ^ routeValues, System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedAtRouteResult CreatedAtRoute (string routeName, object routeValues, object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedAtRouteResult CreatedAtRoute (string? routeName, object? routeValues, object? value);
[<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, value 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.

value
Object

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

Retornos

O criado CreatedAtRouteResult para a resposta.

Atributos

Aplica-se a

CreatedAtRoute(String, Object)

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

Cria um CreatedAtRouteResult objeto que produz uma Status201Created resposta.

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

Parâmetros

routeName
String

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

value
Object

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

Retornos

O criado CreatedAtRouteResult para a resposta.

Atributos

Aplica-se a

CreatedAtRoute(Object, Object)

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

Cria um CreatedAtRouteResult objeto que produz uma Status201Created resposta.

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

Parâmetros

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 CreatedAtRouteResult para a resposta.

Atributos

Aplica-se a