MessageHeaders.CopyHeadersFrom 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.
Copies the content of all the headers from a specified object to this instance.
Overloads
CopyHeadersFrom(MessageHeaders) |
Copies the content from the specified header collection to this instance. |
CopyHeadersFrom(Message) |
Copies the content of all the headers from the specified message to this instance. |
CopyHeadersFrom(MessageHeaders)
- Source:
- MessageHeaders.cs
Copies the content from the specified header collection to this instance.
public:
void CopyHeadersFrom(System::ServiceModel::Channels::MessageHeaders ^ collection);
public void CopyHeadersFrom (System.ServiceModel.Channels.MessageHeaders collection);
member this.CopyHeadersFrom : System.ServiceModel.Channels.MessageHeaders -> unit
Public Sub CopyHeadersFrom (collection As MessageHeaders)
Parameters
- collection
- MessageHeaders
A MessageHeaders collection object from which the headers are copied to this instance.
Applies to
CopyHeadersFrom(Message)
- Source:
- MessageHeaders.cs
Copies the content of all the headers from the specified message to this instance.
public:
void CopyHeadersFrom(System::ServiceModel::Channels::Message ^ message);
public void CopyHeadersFrom (System.ServiceModel.Channels.Message message);
member this.CopyHeadersFrom : System.ServiceModel.Channels.Message -> unit
Public Sub CopyHeadersFrom (message As Message)
Parameters
- message
- Message
A message from which the headers are copied from.