Share via


XmlComment(String, XmlDocument) Construtor

Definição

Inicializa uma nova instância da classe XmlComment.

protected public:
 XmlComment(System::String ^ comment, System::Xml::XmlDocument ^ doc);
protected internal XmlComment (string comment, System.Xml.XmlDocument doc);
protected internal XmlComment (string? comment, System.Xml.XmlDocument doc);
new System.Xml.XmlComment : string * System.Xml.XmlDocument -> System.Xml.XmlComment
Protected Friend Sub New (comment As String, doc As XmlDocument)

Parâmetros

comment
String

O conteúdo do elemento de comentário.

doc
XmlDocument

O documento XML pai.

Comentários

Não instancie um XmlComment diretamente; em vez disso, use métodos como CreateNode.

Aplica-se a