CopyHeaderFrom Method (MessageHeaders, Int32)
Collapse the table of content
Expand the table of content

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.

Namespace:  System.ServiceModel.Channels
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.

Version Notes

Windows Phone

 CopyHeaderFrom(MessageHeaders, Int32) displays the message Specified argument was out of the range of valid values instead of The value of this argument must fall within the range 0 to 1.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft