OperationContext Constructor
Collapse the table of content
Expand the table of content

OperationContext Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft