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^, XmlWriter^)
.NET Framework (current version)
Saves the current endpoint address of a specified version to a specified XML writer.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
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.WriteTo(
AddressingVersion.WSAddressing10,
writer);
writer.Close();
.NET Framework
Available since 3.0
Available since 3.0
Show: