Class CommentFragment
Represents a HTML comment.
Inherited Members
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.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 11.20.7Syntax
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. |