AddressHeader::WriteAddressHeader Method (XmlWriter^)

 

Writes the address header to a stream or file using a specified XmlWriter.

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

public:
void WriteAddressHeader(
	XmlWriter^ writer
)

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

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.

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
Return to top
Show: