WriteAddressHeader Method (XmlWriter)
Collapse the table of content
Expand the table of content

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.

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

'Declaration
Public Sub WriteAddressHeader ( _
	writer As XmlWriter _
)

Parameters

writer
Type: System.Xml.XmlWriter
The XmlWriter used to write the address header to a stream or file.

ExceptionCondition
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.

The following example shows how to call this method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft