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::WriteContentsTo Method (AddressingVersion^, XmlDictionaryWriter^)
.NET Framework (current version)
Saves all the child nodes of the node to the XML dictionary writer specified.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: void WriteContentsTo( 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.WriteContentsTo(
AddressingVersion.WSAddressing10,
dictWriter);
dictWriter.Close();
Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: