Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EndpointAddress::WriteTo Method (AddressingVersion^, XmlDictionaryWriter^)

 

Saves the current endpoint address of a specified version to a specified XML dictionary writer.

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

public:
void WriteTo(
	AddressingVersion^ addressingVersion,
	XmlDictionaryWriter^ writer
)

Parameters

addressingVersion
Type: System.ServiceModel.Channels::AddressingVersion^

The AddressingVersion of the current endpoint address.

writer
Type: System.Xml::XmlDictionaryWriter^

The XmlDictionaryWriter to which the endpoint address is saved.

Exception Condition
ArgumentNullException

writer or addressingVersion is null.

XmlWriter writer = XmlWriter.Create("addressdata.xml");
XmlDictionaryWriter dictWriter = XmlDictionaryWriter.CreateDictionaryWriter(writer);
endpointAddress.WriteTo(
			AddressingVersion.WSAddressing10,
			dictWriter);
writer.Close();

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft