Table of Contents

Class TemplateResult

Namespace
Kentico.PageBuilder.Web.Mvc.PageTemplates
Assembly
Kentico.Content.Web.Mvc.dll

Represents a class that is used to render a page by using the appropriate page template.

public class TemplateResult : ViewResult
Inheritance
object
ActionResult
ViewResult
TemplateResult
Extension Methods

Constructors

TemplateResult()

Creates an instance of the TemplateResult class.

public TemplateResult()

TemplateResult(object)

Creates an instance of the TemplateResult class.

public TemplateResult(object model)

Parameters

model object

Remarks

The page to render is retrieved from the router initialized context or manually initialized context Model that will be accessible in the page template view. using IWebPageDataContextInitializer.

Methods

ExecuteResultAsync(ActionContext)

Executes page rendering with the appropriate template page.

public override Task ExecuteResultAsync(ActionContext context)

Parameters

context ActionContext

The context that the result is executed in.

Returns

Task