ControllerBase.CreatedAtAction Methode

Definition

Überlädt

CreatedAtAction(String, Object)

Erstellt ein CreatedAtActionResult -Objekt, das eine Status201Created Antwort erzeugt.

CreatedAtAction(String, Object, Object)

Erstellt ein CreatedAtActionResult -Objekt, das eine Status201Created Antwort erzeugt.

CreatedAtAction(String, String, Object, Object)

Erstellt ein CreatedAtActionResult -Objekt, das eine Status201Created Antwort erzeugt.

CreatedAtAction(String, Object)

Erstellt ein CreatedAtActionResult -Objekt, das eine Status201Created Antwort erzeugt.

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

Parameter

actionName
String

Der Name der Aktion, die zum Generieren der URL verwendet werden soll.

value
Object

Der Inhaltswert, der im Entitätstext formatiert werden soll.

Gibt zurück

Die für die Antwort erstellte CreatedAtActionResult .

Attribute

Gilt für:

CreatedAtAction(String, Object, Object)

Erstellt ein CreatedAtActionResult -Objekt, das eine Status201Created Antwort erzeugt.

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

Parameter

actionName
String

Der Name der Aktion, die zum Generieren der URL verwendet werden soll.

routeValues
Object

Die Routendaten, die zum Generieren der URL verwendet werden sollen.

value
Object

Der Inhaltswert, der im Entitätstext formatiert werden soll.

Gibt zurück

Die für die Antwort erstellte CreatedAtActionResult .

Attribute

Gilt für:

CreatedAtAction(String, String, Object, Object)

Erstellt ein CreatedAtActionResult -Objekt, das eine Status201Created Antwort erzeugt.

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

Parameter

actionName
String

Der Name der Aktion, die zum Generieren der URL verwendet werden soll.

controllerName
String

Der Name des Controllers, der zum Generieren der URL verwendet werden soll.

routeValues
Object

Die Routendaten, die zum Generieren der URL verwendet werden sollen.

value
Object

Der Inhaltswert, der im Entitätstext formatiert werden soll.

Gibt zurück

Die für die Antwort erstellte CreatedAtActionResult .

Attribute

Gilt für: