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

Class CommentFragment

Represents a HTML comment.

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

Constructors

CommentFragment()

Initializes a new instance of the CommentFragment class.

Declaration
public CommentFragment()

Properties

Name

Gets the name of the fragment, which is always --

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