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 SourceExecuteAsync(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. |