Try our conversational search powered by Generative AI!

Class ContentFragmentHandler

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Fragment element handler responsible for parsing a fragment element and if a content is found create a new ContentFragment that matches it.

Inheritance
System.Object
ContentFragmentHandler
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.Core.Html.StringParsing.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(IFragmentElementHandler), Lifecycle = ServiceInstanceScope.Singleton)]
public class ContentFragmentHandler : IFragmentElementHandler

Constructors

ContentFragmentHandler(ContentFragmentFactory, ISecuredFragmentMarkupGeneratorFactory)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ContentFragmentHandler class.

Declaration
public ContentFragmentHandler(ContentFragmentFactory contentFragmentFactory, ISecuredFragmentMarkupGeneratorFactory securedFragmentMarkupGeneratorFactory)
Parameters
Type Name Description
ContentFragmentFactory contentFragmentFactory

The content fragment factory.

ISecuredFragmentMarkupGeneratorFactory securedFragmentMarkupGeneratorFactory

The secured fragment markup generator factory.

Methods

ParseElement(FragmentParserContext, ElementFragment)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Declaration
public bool ParseElement(FragmentParserContext context, ElementFragment element)
Parameters
Type Name Description
FragmentParserContext context

The current parser context that contains the source and where any results should be written.

ElementFragment element

The element that should be parsed.

Returns
Type Description
System.Boolean

true if the element was handled, otherwise false.

Implements

Extension Methods