Class HtmlFragmentExtensions

Extensions related to PropertyData and property rendering for System.Web.Mvc.HtmlHelper.

Inheritance
System.Object
HtmlFragmentExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Mvc.Html
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public static class HtmlFragmentExtensions

Methods

Fragment(HtmlHelper, HtmlFragment)

Renders partial views from fragment data and returns it on an MvcHtmlString object

Declaration
public static MvcHtmlString Fragment(this HtmlHelper htmlHelper, HtmlFragment fragment)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper htmlHelper

HtmlHelper

HtmlFragment fragment

The fragment to render.

Returns
Type Description
System.Web.Mvc.MvcHtmlString

An System.Web.Mvc.MvcHtmlString containing the rendered fragment.