Condividi tramite


ControllerBase.CreatedAtRoute Metodo

Definizione

Overload

CreatedAtRoute(String, Object, Object)

Crea un CreatedAtRouteResult oggetto che produce una Status201Created risposta.

CreatedAtRoute(String, Object)

Crea un CreatedAtRouteResult oggetto che produce una Status201Created risposta.

CreatedAtRoute(Object, Object)

Crea un CreatedAtRouteResult oggetto che produce una Status201Created risposta.

CreatedAtRoute(String, Object, Object)

Origine:
ControllerBase.cs
Origine:
ControllerBase.cs
Origine:
ControllerBase.cs

Crea un CreatedAtRouteResult oggetto che produce una Status201Created risposta.

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

Parametri

routeName
String

Nome della route da usare per generare l'URL.

routeValues
Object

Dati della route da usare per generare l'URL.

value
Object

Valore del contenuto da formattare nel corpo entità.

Restituisce

Oggetto creato CreatedAtRouteResult per la risposta.

Attributi

Si applica a

CreatedAtRoute(String, Object)

Origine:
ControllerBase.cs
Origine:
ControllerBase.cs
Origine:
ControllerBase.cs

Crea un CreatedAtRouteResult oggetto che produce una Status201Created risposta.

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

Parametri

routeName
String

Nome della route da usare per generare l'URL.

value
Object

Valore del contenuto da formattare nel corpo entità.

Restituisce

Oggetto creato CreatedAtRouteResult per la risposta.

Attributi

Si applica a

CreatedAtRoute(Object, Object)

Origine:
ControllerBase.cs
Origine:
ControllerBase.cs
Origine:
ControllerBase.cs

Crea un CreatedAtRouteResult oggetto che produce una Status201Created risposta.

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

Parametri

routeValues
Object

Dati della route da usare per generare l'URL.

value
Object

Valore del contenuto da formattare nel corpo entità.

Restituisce

Oggetto creato CreatedAtRouteResult per la risposta.

Attributi

Si applica a