IOperationBehavior.ApplyClientBehavior Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Implements a modification or extension of the client across an operation.
Namespace: System.ServiceModel.Description
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Syntax
'Declaration
Sub ApplyClientBehavior ( _
operationDescription As OperationDescription, _
clientOperation As ClientOperation _
)
void ApplyClientBehavior(
OperationDescription operationDescription,
ClientOperation clientOperation
)
Parameters
- operationDescription
Type: System.ServiceModel.Description.OperationDescription
The operation being examined. Use for examination only. If the operation description is modified, the results are undefined.
- clientOperation
Type: System.ServiceModel.Dispatcher.ClientOperation
The run-time object that exposes customization properties for the operation described by operationDescription.
Remarks
Implement the ApplyClientBehavior method to view, modify, or add a custom extension to the client runtime across all messages used with a specific operation. For details about what customizations you can do with a client run-time object, see ClientRuntime and ClientOperation.
It is recommended that the ApplyClientBehavior method throw a NotImplementedException if the behavior is only intended for use in a service application.
Version Information
Silverlight
Supported in: 5, 4
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.