Bagikan melalui


ControllerBase.CreatedAtRoute Metode

Definisi

Overload

CreatedAtRoute(String, Object, Object)

CreatedAtRouteResult Membuat objek yang menghasilkan Status201Created respons.

CreatedAtRoute(String, Object)

CreatedAtRouteResult Membuat objek yang menghasilkan Status201Created respons.

CreatedAtRoute(Object, Object)

CreatedAtRouteResult Membuat objek yang menghasilkan Status201Created respons.

CreatedAtRoute(String, Object, Object)

Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs

CreatedAtRouteResult Membuat objek yang menghasilkan Status201Created respons.

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

Parameter

routeName
String

Nama rute yang akan digunakan untuk menghasilkan URL.

routeValues
Object

Data rute yang digunakan untuk menghasilkan URL.

value
Object

Nilai konten untuk diformat dalam isi entitas.

Mengembalikan

yang dibuat CreatedAtRouteResult untuk respons.

Atribut

Berlaku untuk

CreatedAtRoute(String, Object)

Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs

CreatedAtRouteResult Membuat objek yang menghasilkan Status201Created respons.

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

Parameter

routeName
String

Nama rute yang akan digunakan untuk menghasilkan URL.

value
Object

Nilai konten untuk diformat dalam isi entitas.

Mengembalikan

yang dibuat CreatedAtRouteResult untuk respons.

Atribut

Berlaku untuk

CreatedAtRoute(Object, Object)

Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs

CreatedAtRouteResult Membuat objek yang menghasilkan Status201Created respons.

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

Parameter

routeValues
Object

Data rute yang digunakan untuk menghasilkan URL.

value
Object

Nilai konten untuk diformat dalam isi entitas.

Mengembalikan

yang dibuat CreatedAtRouteResult untuk respons.

Atribut

Berlaku untuk