ViewComponentResult Sınıf

Tanım

Bir IActionResult görünüm bileşenini yanıta işleyen.

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
Devralma
ViewComponentResult
Uygulamalar

Oluşturucular

ViewComponentResult()

Bir IActionResult görünüm bileşenini yanıta işleyen.

Özellikler

Arguments

Görünüm bileşenine sağlanan bağımsız değişkenleri alır veya ayarlar.

ContentType

Yanıt için Content-Type üst bilgisini alır veya ayarlar.

Model

Görünüm veri modelini alın.

StatusCode

HTTP durum kodunu alır veya ayarlar.

TempData

Bu sonuç için öğesini ITempDataDictionary alır veya ayarlar.

ViewComponentName

Çağrılacak görünüm bileşeninin adını alır veya ayarlar. Değer olmayannull bir değere ayarlanırsa ViewComponentType yoksayılır.

ViewComponentType

Çağrılacak görünüm bileşeninin türünü alır veya ayarlar.

ViewData

Bu sonuç için öğesini ViewDataDictionary alır veya ayarlar.

ViewEngine
Geçersiz.

Bu özellik kullanılmamış ve sonraki ana sürümde kaldırılacak.

Görünümleri bulmak için kullanılan öğesini IViewEngine alır veya ayarlar.

Yöntemler

ExecuteResult(ActionContext)

Eylem yönteminin sonuç işlemini zaman uyumlu olarak yürütür. Bu yöntem, bir eylem yönteminin sonucunu işlemek için MVC tarafından çağrılır.

(Devralındığı yer: ActionResult)
ExecuteResultAsync(ActionContext)

Eylem yönteminin sonuç işlemini zaman uyumsuz olarak yürütür. Bu yöntem, bir eylem yönteminin sonucunu işlemek için MVC tarafından çağrılır.

Şunlara uygulanır