XPathMessageFilter.WriteXPathTo Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Écrit l’élément XPath XML 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
Utilisé XmlWriter pour écrire le XPathMessageFilter.
- prefix
- String
Préfixe d’espace de noms de l’élément XML XPath.
- localName
- String
Nom local de l’élément XML XPath.
- ns
- String
URI d’espace de noms à associer à l’élément XML.
- writeNamespaces
- Boolean
true si les espaces de noms doivent être sérialisés séparément en tant qu’attributs ; sinon, false.
Exceptions
writer ou localName est null.
localName a la longueur = 0.
Remarques
Doit writer être dans l’état Démarrer . Sinon, une exception est levée.