Search Results for

    Show / Hide Table of Contents
    View Source

    Class PartialViewMacroEngine

    A macro engine using MVC Partial Views to execute.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Web.Common.Macros
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public class PartialViewMacroEngine

    Constructors

    View Source

    PartialViewMacroEngine(IHttpContextAccessor, IModelMetadataProvider, ITempDataDictionaryFactory)

    Declaration
    public PartialViewMacroEngine(IHttpContextAccessor httpContextAccessor, IModelMetadataProvider modelMetadataProvider, ITempDataDictionaryFactory tempDataDictionaryFactory)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor
    Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider
    Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory tempDataDictionaryFactory

    Methods

    View Source

    Execute(MacroModel, IPublishedContent)

    Declaration
    public MacroContent Execute(MacroModel macro, IPublishedContent content)
    Parameters
    Type Name Description
    MacroModel macro
    IPublishedContent content
    Returns
    Type Description
    MacroContent
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • PartialViewMacroEngine(IHttpContextAccessor, IModelMetadataProvider, ITempDataDictionaryFactory)
    • Methods
      • Execute(MacroModel, IPublishedContent)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX