Edit

Share via


AddressHeader.WriteAddressHeader Method

Definition

Writes the address header to a stream or file.

Overloads

WriteAddressHeader(XmlDictionaryWriter)

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

WriteAddressHeader(XmlWriter)

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

Remarks

The WriteAddressHeader and WriteAddressHeader(XmlWriter) overloads provide interfaces to use in writing an address header to a stream or file. Both call the abstract OnWriteAddressHeaderContents(XmlDictionaryWriter) method, so users must provide an implementation of this method to use these overloads.

WriteAddressHeader(XmlDictionaryWriter)

Source:
AddressHeader.cs

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

public:
 void WriteAddressHeader(System::Xml::XmlDictionaryWriter ^ writer);
public void WriteAddressHeader (System.Xml.XmlDictionaryWriter writer);
member this.WriteAddressHeader : System.Xml.XmlDictionaryWriter -> unit
Public Sub WriteAddressHeader (writer As XmlDictionaryWriter)

Parameters

writer
XmlDictionaryWriter

The XmlDictionaryWriter used to write the address header to a stream or file.

Exceptions

The writer is null.

Examples

The following example shows how to call this method.

Remarks

This overload calls the abstract

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

Applies to

WriteAddressHeader(XmlWriter)

Source:
AddressHeader.cs

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

public:
 void WriteAddressHeader(System::Xml::XmlWriter ^ writer);
public void WriteAddressHeader (System.Xml.XmlWriter writer);
member this.WriteAddressHeader : System.Xml.XmlWriter -> unit
Public Sub WriteAddressHeader (writer As XmlWriter)

Parameters

writer
XmlWriter

The XmlWriter used to write the address header to a stream or file.

Exceptions

The writer is null.

Examples

The following example shows how to call this method.

Remarks

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.

Applies to