ViewComponentResult 클래스

정의

IActionResult 뷰 구성 요소를 응답에 렌더링하는 입니다.

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
상속
ViewComponentResult
구현

생성자

ViewComponentResult()

IActionResult 뷰 구성 요소를 응답에 렌더링하는 입니다.

속성

Arguments

뷰 구성 요소에 제공된 인수를 가져오거나 설정합니다.

ContentType

응답에 대한 Content-Type 헤더를 가져오거나 설정합니다.

Model

뷰 데이터 모델을 가져옵니다.

StatusCode

HTTP 상태 코드를 가져오거나 설정합니다.

TempData

이 결과에 대한 를 ITempDataDictionary 가져오거나 설정합니다.

ViewComponentName

호출할 뷰 구성 요소의 이름을 가져오거나 설정합니다. 가 값null이 아닌 값으로 설정된 경우 ViewComponentType 무시됩니다.

ViewComponentType

호출할 뷰 구성 요소의 형식을 가져오거나 설정합니다.

ViewData

이 결과에 대한 를 ViewDataDictionary 가져오거나 설정합니다.

ViewEngine
사용되지 않음.

이 속성은 사용되지 않으며 다음 주 버전에서 제거됩니다.

뷰를 찾는 데 사용되는 를 IViewEngine 가져오거나 설정합니다.

메서드

ExecuteResult(ActionContext)

작업 메서드의 결과 작업을 동기적으로 실행합니다. 이 메서드는 MVC에서 작업 메서드의 결과를 처리하기 위해 호출됩니다.

(다음에서 상속됨 ActionResult)
ExecuteResultAsync(ActionContext)

작업 메서드의 결과 작업을 비동기적으로 실행합니다. 이 메서드는 MVC에서 작업 메서드의 결과를 처리하기 위해 호출됩니다.

적용 대상