ViewComponentResult Kelas
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.
yang IActionResult merender komponen tampilan ke respons.
public ref class ViewComponentResult : Microsoft::AspNetCore::Mvc::ActionResult
public ref class ViewComponentResult : Microsoft::AspNetCore::Mvc::ActionResult, Microsoft::AspNetCore::Mvc::IActionResult, Microsoft::AspNetCore::Mvc::Infrastructure::IStatusCodeActionResult
public class ViewComponentResult : Microsoft.AspNetCore.Mvc.ActionResult
public class ViewComponentResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult
type ViewComponentResult = class
inherit ActionResult
type ViewComponentResult = class
inherit ActionResult
interface IStatusCodeActionResult
interface IActionResult
type ViewComponentResult = class
inherit ActionResult
interface IActionResult
interface IStatusCodeActionResult
Public Class ViewComponentResult
Inherits ActionResult
Public Class ViewComponentResult
Inherits ActionResult
Implements IActionResult, IStatusCodeActionResult
- Warisan
- Penerapan
Konstruktor
ViewComponentResult() |
yang IActionResult merender komponen tampilan ke respons. |
Properti
Arguments |
Mendapatkan atau mengatur argumen yang disediakan untuk komponen tampilan. |
ContentType |
Mendapatkan atau mengatur header Jenis Konten untuk respons. |
Model |
Dapatkan model data tampilan. |
StatusCode |
Mendapatkan atau mengatur kode status HTTP. |
TempData |
Mendapatkan atau mengatur ITempDataDictionary untuk hasil ini. |
ViewComponentName |
Mendapatkan atau mengatur nama komponen tampilan yang akan dipanggil. Akan diabaikan jika ViewComponentType diatur ke non-nilai |
ViewComponentType |
Mendapatkan atau mengatur jenis komponen tampilan yang akan dipanggil. |
ViewData |
Mendapatkan atau mengatur ViewDataDictionary untuk hasil ini. |
ViewEngine |
Kedaluwarsa.
Properti ini tidak digunakan dan akan dihapus dalam versi utama berikutnya. Mendapatkan atau mengatur yang IViewEngine digunakan untuk menemukan tampilan. |
Metode
ExecuteResult(ActionContext) |
Menjalankan operasi hasil metode tindakan secara sinkron. Metode ini dipanggil oleh MVC untuk memproses hasil metode tindakan. (Diperoleh dari ActionResult) |
ExecuteResultAsync(ActionContext) |
Menjalankan operasi hasil metode tindakan secara asinkron. Metode ini dipanggil oleh MVC untuk memproses hasil metode tindakan. |