View Source
Class PartialViewMacroEngine
A macro engine using MVC Partial Views to execute.
Inheritance
System.Object
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 |
|