AddressHeader.WriteAddressHeader Method (XmlWriter)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Writes the address header to a stream or file using a specified XmlWriter.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- writer
- Type: System.Xml.XmlWriter
The XmlWriter used to write the address header to a stream or file.
| Exception | Condition |
|---|---|
| ArgumentNullException | The writer is Nothing. |
This overload wraps XmlWriter as a XmlDictionaryWriter and then the calls the abstract
OnWriteAddressHeaderContents(XmlDictionaryWriter) method. Users must provide an implementation for that abstract method to use this overload.
Show: