XmlComment(String, XmlDocument) Konstruktor

Definition

Initialisiert eine neue Instanz der XmlComment-Klasse.

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)

Parameter

comment
String

Der Inhalt des Kommentarelements.

doc
XmlDocument

Das übergeordnete XML-Dokument.

Hinweise

Instanziieren Sie eine XmlComment nicht direkt, sondern verwenden Sie Stattdessen Methoden wie CreateNode.

Gilt für: