MessageHeaders.CopyHeaderFrom Method (MessageHeaders, Int32)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Copies the header content located at the specified index from the specified message header collection to this instance.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
'Declaration Public Sub CopyHeaderFrom ( _ collection As MessageHeaders, _ headerIndex As Integer _ )
Parameters
- collection
- Type: System.ServiceModel.Channels.MessageHeaders
A MessageHeaders.
- headerIndex
- Type: System.Int32
The location of the original message header, from which the content is copied over.
Show: