Export (0) Print
Expand All

MessageHeaders.CopyHeaderFrom Method (MessageHeaders, Int32)

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)

public void CopyHeaderFrom(
	MessageHeaders collection,
	int headerIndex
)

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.

Platform Notes

Silverlight for Windows Phone Silverlight for Windows Phone

 CopyHeaderFrom() 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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft