XPathMessageFilter.WriteXPathTo Méthode

Définition

Écrit l'élément XML XPath avec un enregistreur XML spécifié.

public:
 void WriteXPathTo(System::Xml::XmlWriter ^ writer, System::String ^ prefix, System::String ^ localName, System::String ^ ns, bool writeNamespaces);
public void WriteXPathTo (System.Xml.XmlWriter writer, string prefix, string localName, string ns, bool writeNamespaces);
member this.WriteXPathTo : System.Xml.XmlWriter * string * string * string * bool -> unit
Public Sub WriteXPathTo (writer As XmlWriter, prefix As String, localName As String, ns As String, writeNamespaces As Boolean)

Paramètres

writer
XmlWriter

XmlWriter utilisé pour écrire XPathMessageFilter.

prefix
String

Préfixe de l’espace de nom de l’élément XPath XML.

localName
String

Nom local de l'élément XPath XML.

ns
String

URI de l'espace de noms à associer à l'élément XML.

writeNamespaces
Boolean

true si les espaces de noms doivent être sérialisés séparément comme attributs ; sinon, false.

Exceptions

writer ou localName est null.

localName a la longueur = 0.

Remarques

doit writer être à l’état Démarrer . Sinon, une exception est levée.

S’applique à