Share via


XmlComment(String, XmlDocument) Constructor

Definición

Inicializa una nueva instancia de la clase 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

Contenido del elemento de comentario.

doc
XmlDocument

Documento XML primario.

Comentarios

No cree una XmlComment instancia de directamente; en su lugar, use métodos como CreateNode.

Se aplica a