November Happy Hour will be moved to Thursday December 5th.

Class CDataFragment

A CDATA fragment in a HTML stream.

Inheritance
System.Object
CDataFragment
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public class CDataFragment : HtmlFragment

Constructors

CDataFragment()

Initializes a new instance of the CDataFragment class.

Declaration
public CDataFragment()

Properties

Name

Gets the name of the fragment, which is always "[CDATA[".

Declaration
public override string Name { get; set; }
Property Value
Type Description
System.String

The name.

Overrides
Remarks

Attempting to set this property will throw a NotSupportedException.

Methods

Parse(IHtmlParserContext)

Parses the fragment from the specified context.

Declaration
public override void Parse(IHtmlParserContext context)
Parameters
Type Name Description
IHtmlParserContext context

The context.

Overrides

ToWriter(TextWriter)

Writes the fragment to the given TextWriter.

Declaration
public override void ToWriter(TextWriter writer)
Parameters
Type Name Description
System.IO.TextWriter writer

The writer.

Overrides

Extension Methods