Condividi tramite


ControllerBase.CreatedAtAction Metodo

Definizione

Overload

CreatedAtAction(String, Object)

Crea un CreatedAtActionResult oggetto che produce una Status201Created risposta.

CreatedAtAction(String, Object, Object)

Crea un CreatedAtActionResult oggetto che produce una Status201Created risposta.

CreatedAtAction(String, String, Object, Object)

Crea un CreatedAtActionResult oggetto che produce una Status201Created risposta.

CreatedAtAction(String, Object)

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

Crea un CreatedAtActionResult oggetto che produce una Status201Created risposta.

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

Parametri

actionName
String

Nome dell'azione da usare per generare l'URL.

value
Object

Valore del contenuto da formattare nel corpo entità.

Restituisce

Oggetto creato CreatedAtActionResult per la risposta.

Attributi

Si applica a

CreatedAtAction(String, Object, Object)

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

Crea un CreatedAtActionResult oggetto che produce una Status201Created risposta.

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

Parametri

actionName
String

Nome dell'azione 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 CreatedAtActionResult per la risposta.

Attributi

Si applica a

CreatedAtAction(String, String, Object, Object)

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

Crea un CreatedAtActionResult oggetto che produce una Status201Created risposta.

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

Parametri

actionName
String

Nome dell'azione da usare per generare l'URL.

controllerName
String

Nome del controller da usare per la generazione dell'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 CreatedAtActionResult per la risposta.

Attributi

Si applica a