Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

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.3
Syntax
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.