AddressHeaderCollection.AddHeadersTo(Message) AddressHeaderCollection.AddHeadersTo(Message) AddressHeaderCollection.AddHeadersTo(Message) Method

Definition

Adds the headers in the collection to the headers of a specified message.

public:
 void AddHeadersTo(System::ServiceModel::Channels::Message ^ message);
public void AddHeadersTo (System.ServiceModel.Channels.Message message);
member this.AddHeadersTo : System.ServiceModel.Channels.Message -> unit

Parameters

message
Message Message Message

The Message to which the headers are added.

Exceptions

Examples

The following code snippet illustrates how to call this method.

Remarks

This inserts the headers from the current collection into the MessageHeaders associated with the Message and accessible through the Headers property.

Applies to