Share via


ViewViewComponentResult Class

Definition

A IViewComponentResult that renders a partial view when executed.

public ref class ViewViewComponentResult : Microsoft::AspNetCore::Mvc::IViewComponentResult
public class ViewViewComponentResult : Microsoft.AspNetCore.Mvc.IViewComponentResult
type ViewViewComponentResult = class
    interface IViewComponentResult
Public Class ViewViewComponentResult
Implements IViewComponentResult
Inheritance
ViewViewComponentResult
Implements

Constructors

ViewViewComponentResult()

Properties

TempData

Gets or sets the ITempDataDictionary instance.

ViewData

Gets or sets the ViewDataDictionary.

ViewEngine

Gets or sets the ViewEngine.

ViewName

Gets or sets the view name.

Methods

Execute(ViewComponentContext)

Locates and renders a view specified by ViewName. If ViewName is null, then the view name searched for is"Default".

ExecuteAsync(ViewComponentContext)

Locates and renders a view specified by ViewName. If ViewName is null, then the view name searched for is"Default".

Applies to