Compartir a través de


ControllerBase.CreatedAtRoute Método

Definición

Sobrecargas

CreatedAtRoute(String, Object, Object)

Crea un CreatedAtRouteResult objeto que genera una Status201Created respuesta.

CreatedAtRoute(String, Object)

Crea un CreatedAtRouteResult objeto que genera una Status201Created respuesta.

CreatedAtRoute(Object, Object)

Crea un CreatedAtRouteResult objeto que genera una Status201Created respuesta.

CreatedAtRoute(String, Object, Object)

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

Crea un CreatedAtRouteResult objeto que genera una Status201Created respuesta.

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

El nombre de la ruta que se usa 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

creado CreatedAtRouteResult para la respuesta.

Atributos

Se aplica a

CreatedAtRoute(String, Object)

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

Crea un CreatedAtRouteResult objeto que genera una Status201Created respuesta.

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

El nombre de la 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

creado CreatedAtRouteResult para la respuesta.

Atributos

Se aplica a

CreatedAtRoute(Object, Object)

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

Crea un CreatedAtRouteResult objeto que genera una Status201Created respuesta.

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

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

creado CreatedAtRouteResult para la respuesta.

Atributos

Se aplica a