AddressHeaderCollection.AddHeadersTo(Message) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.