Comment Event
Fired when a comment section is encountered.
Syntax
public event OnCommentHandler OnComment; public delegate void OnCommentHandler(object sender, XmlCommentEventArgs e); public class XmlCommentEventArgs : EventArgs { public string Text { get; } }
Public Event OnComment As OnCommentHandler Public Delegate Sub OnCommentHandler(sender As Object, e As XmlCommentEventArgs) Public Class XmlCommentEventArgs Inherits EventArgs Public ReadOnly Property Text As String End Class
Remarks
The Comment event is fired whenever a comment section (<!-- ..text... -->) is found in the document.
The full text of the comment is provided by the Text parameter.