Udostępnij za pośrednictwem


ControllerBase.CreatedAtRoute Metoda

Definicja

Przeciążenia

CreatedAtRoute(String, Object, Object)

CreatedAtRouteResult Tworzy obiekt, który generuje Status201Created odpowiedź.

CreatedAtRoute(String, Object)

CreatedAtRouteResult Tworzy obiekt, który generuje Status201Created odpowiedź.

CreatedAtRoute(Object, Object)

CreatedAtRouteResult Tworzy obiekt, który generuje Status201Created odpowiedź.

CreatedAtRoute(String, Object, Object)

Źródło:
ControllerBase.cs
Źródło:
ControllerBase.cs
Źródło:
ControllerBase.cs

CreatedAtRouteResult Tworzy obiekt, który generuje Status201Created odpowiedź.

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

Parametry

routeName
String

Nazwa trasy do użycia do generowania adresu URL.

routeValues
Object

Dane trasy do użycia do generowania adresu URL.

value
Object

Wartość zawartości do sformatowania w treści jednostki.

Zwraca

CreatedAtRouteResult Utworzono odpowiedź.

Atrybuty

Dotyczy

CreatedAtRoute(String, Object)

Źródło:
ControllerBase.cs
Źródło:
ControllerBase.cs
Źródło:
ControllerBase.cs

CreatedAtRouteResult Tworzy obiekt, który generuje Status201Created odpowiedź.

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

Parametry

routeName
String

Nazwa trasy do użycia do generowania adresu URL.

value
Object

Wartość zawartości do sformatowania w treści jednostki.

Zwraca

CreatedAtRouteResult Utworzono odpowiedź.

Atrybuty

Dotyczy

CreatedAtRoute(Object, Object)

Źródło:
ControllerBase.cs
Źródło:
ControllerBase.cs
Źródło:
ControllerBase.cs

CreatedAtRouteResult Tworzy obiekt, który generuje Status201Created odpowiedź.

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

Parametry

routeValues
Object

Dane trasy do użycia do generowania adresu URL.

value
Object

Wartość zawartości do sformatowania w treści jednostki.

Zwraca

CreatedAtRouteResult Utworzono odpowiedź.

Atrybuty

Dotyczy