Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ITemplateRenderer

    This is used purely for the RenderTemplate functionality in Umbraco

    Namespace: Umbraco.Cms.Core.Templates
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ITemplateRenderer

    Methods

    View Source

    RenderAsync(int, int?, StringWriter)

    Renders a template for the specified page asynchronously.

    Declaration
    Task RenderAsync(int pageId, int? altTemplateId, StringWriter writer)
    Parameters
    Type Name Description
    int pageId

    The identifier of the page to render.

    int? altTemplateId

    An optional alternative template identifier. If not specified, uses the template assigned to the page.

    StringWriter writer

    The System.IO.StringWriter to write the rendered output to.

    Returns
    Type Description
    Task

    A task that represents the asynchronous render operation.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX