XPathMessageFilter.WriteXPathTo Method (XmlWriter, String, String, String, Boolean)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Writes the XML XPath element with a specified XML writer.

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public void WriteXPathTo(
	XmlWriter writer,
	string prefix,
	string localName,
	string ns,
	bool writeNamespaces
)

Parameters

writer
Type: System.Xml.XmlWriter

The XmlWriter used to write the XPathMessageFilter.

prefix
Type: System.String

The namespace prefix of the XPath XML element.

localName
Type: System.String

The local name of the XPath XML element.

ns
Type: System.String

The namespace URI to associate with the XML element.

writeNamespaces
Type: System.Boolean

true if namespaces should be serialized out separately as attributes; otherwise, false.

Exception Condition
ArgumentNullException

writer is null.

ArgumentNullException

localName is null.

ArgumentException

localName has length = 0.

The writer must be in the Start state. Otherwise an exception is thrown.

.NET Framework
Available since 3.0
Return to top
Show: