Επεξεργασία

Κοινή χρήση μέσω


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
Public Sub AddHeadersTo (message As Message)

Parameters

message
Message

The Message to which the headers are added.

Exceptions

message is null.

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