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

AddressHeader.WriteAddressHeader Method (XmlDictionaryWriter)

[ 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 XmlDictionaryWriter.

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

public void WriteAddressHeader(
	XmlDictionaryWriter writer
)

Parameters

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

ExceptionCondition
ArgumentNullException

The writer is null.

This overload calls the abstract

OnWriteAddressHeaderContents(XmlDictionaryWriter) method, so users must provide an implementation of that method to use this method.

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