EndpointAddress.WriteContentsTo Method (AddressingVersion, XmlWriter)

 

Saves all the child nodes of the node to the XML writer specified.

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

public void WriteContentsTo(
	AddressingVersion addressingVersion,
	XmlWriter writer
)

Parameters

addressingVersion
Type: System.ServiceModel.Channels.AddressingVersion

The AddressingVersion of the current endpoint address.

writer
Type: System.Xml.XmlWriter

The XmlWriter to which the endpoint address is saved.

Exception Condition
ArgumentNullException

writer or addressingVersion is null.

XmlWriter writer = XmlWriter.Create("addressdata.xml");
endpointAddress.WriteContentsTo(
				AddressingVersion.WSAddressing10,
				writer);
writer.Close();

.NET Framework
Available since 3.0
Return to top
Show: