Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IPartialViewBlockEngine

    Defines a contract for rendering block references using partial views.

    Namespace: Umbraco.Cms.Core.Blocks
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IPartialViewBlockEngine

    Methods

    View Source

    ExecuteAsync(IBlockReference<IPublishedElement, IPublishedElement>)

    Executes the partial view associated with the given block reference and returns the rendered output.

    Declaration
    Task<string> ExecuteAsync(IBlockReference<IPublishedElement, IPublishedElement> blockReference)
    Parameters
    Type Name Description
    IBlockReference<IPublishedElement, IPublishedElement> blockReference

    The block reference containing content and settings elements to render.

    Returns
    Type Description
    Task<string>

    A task that represents the asynchronous operation. The task result contains the rendered HTML string.

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