Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IUmbracoComponentRenderer

    Methods used to render umbraco components as HTML in templates

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

    Methods

    View Source

    RenderTemplateAsync(int, int?)

    Renders the template for the specified pageId and an optional altTemplateId

    Declaration
    Task<IHtmlEncodedString> RenderTemplateAsync(int contentId, int? altTemplateId = null)
    Parameters
    Type Name Description
    int contentId

    The content id

    int? altTemplateId

    If not specified, will use the template assigned to the node

    Returns
    Type Description
    Task<IHtmlEncodedString>
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX