CreateComment Method (String)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Creates an HTML comment node with the specified comment text.

Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public HtmlCommentNode CreateComment(
	string comment
)
Visual Basic
Public Function CreateComment ( _
	comment As String _
) As HtmlCommentNode
Visual C++
public:
HtmlCommentNode^ CreateComment(
	String^ comment
)

Parameters

comment
Type: System..::..String
The comment text. May not be null.

Return Value

The new HTML comment node.

See Also