Class PlaceholderTagHelper
Version: 21.x
Tag helper for the Sitecore placeholder element.
Inheritance
System.Object
PlaceholderTagHelper
Namespace: Sitecore.AspNet.RenderingEngine.TagHelpers
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
Constructors
PlaceholderTagHelper(IComponentRendererFactory, IEditableChromeRenderer)
Initializes a new instance of the PlaceholderTagHelper class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IComponentRendererFactory | componentFactory | An instance of IComponentRendererFactory. |
| IEditableChromeRenderer | chromeRenderer | An instance of IEditableChromeRenderer. |
Properties
Name
Gets or sets the name of the placeholder to be rendered.
Declaration
Property Value
| Type | Description |
|---|---|
| System.String |
ViewContext
Gets or sets the current view context for the tag helper.
Declaration
Property Value
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Mvc.Rendering.ViewContext |
Methods
ProcessAsync(TagHelperContext, TagHelperOutput)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext | context | |
| Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput | output |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
If you have suggestions for improving this article, let us know!