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

MessageHeaders.CopyHeaderFrom Method (Message, 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 to this instance.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public void CopyHeaderFrom(
	Message message,
	int headerIndex
)

Parameters

message
Type: System.ServiceModel.Channels.Message
A message.
headerIndex
Type: System.Int32
The location of the original message header, from which the content is copied over.

Version Notes

Windows Phone

 CopyHeaderFrom(Message, 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