ControllerBase.CreatedAtAction Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
CreatedAtAction(String, Object) |
CreatedAtActionResult Membuat objek yang menghasilkan Status201Created respons. |
CreatedAtAction(String, Object, Object) |
CreatedAtActionResult Membuat objek yang menghasilkan Status201Created respons. |
CreatedAtAction(String, String, Object, Object) |
CreatedAtActionResult Membuat objek yang menghasilkan Status201Created respons. |
CreatedAtAction(String, Object)
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
CreatedAtActionResult Membuat objek yang menghasilkan Status201Created respons.
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
Nama tindakan yang digunakan untuk menghasilkan URL.
- value
- Object
Nilai konten untuk diformat dalam isi entitas.
Mengembalikan
yang dibuat CreatedAtActionResult untuk respons.
- Atribut
Berlaku untuk
CreatedAtAction(String, Object, Object)
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
CreatedAtActionResult Membuat objek yang menghasilkan Status201Created respons.
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
Nama tindakan yang 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 CreatedAtActionResult untuk respons.
- Atribut
Berlaku untuk
CreatedAtAction(String, String, Object, Object)
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
CreatedAtActionResult Membuat objek yang menghasilkan Status201Created respons.
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
Nama tindakan yang digunakan untuk menghasilkan URL.
- controllerName
- String
Nama pengontrol yang 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 CreatedAtActionResult untuk respons.
- Atribut