Class HtmlFragmentExtensions
Extensions related to PropertyData and property rendering for Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper.
Inheritance
System.Object
HtmlFragmentExtensions
Namespace: EPiServer.Web.Mvc.Html
Assembly: EPiServer.Cms.AspNetCore.HtmlHelpers.dll
Version: 12.0.3Syntax
public static class HtmlFragmentExtensions : Object
Methods
Fragment(IHtmlHelper, HtmlFragment)
Renders partial views from fragment data and returns it on an HtmlString object
Declaration
public static IHtmlContent Fragment(this IHtmlHelper htmlHelper, HtmlFragment fragment)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper | htmlHelper | HtmlHelper |
| HtmlFragment | fragment | The fragment to render. |
Returns
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Html.IHtmlContent | An Microsoft.AspNetCore.Html.HtmlString containing the rendered fragment. |