Export (0) Print
Expand All

OperationContext Constructor

Initializes a new instance of the OperationContext class that uses the specified IContextChannel in a client application.

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

public OperationContext(
	IContextChannel channel
)

Parameters

channel
Type: System.ServiceModel.IContextChannel
The IContextChannel used to create a new client OperationContext.

ExceptionCondition
ArgumentNullException

The channel is null.

Use the OperationContext constructor to create a new operation context within the scope of which the proxy is associated in order to modify outbound items such as headers.

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:
© 2015 Microsoft