Implements methods that can be used to extend run-time behavior for a contract in a Silverlight application.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Thetype exposes the following members.
|AddBindingParameters||Configures any binding elements to support the contract behavior.|
|ApplyClientBehavior||Implements a modification or extension of the client across a contract.|
|ApplyDispatchBehavior||This method is not used in the current implementation of Silverlight.|
|Validate||Implement to confirm that the contract and endpoint can support the contract behavior.|
Implement the interface to modify, examine, or extend some aspect of contract-wide execution at the application level.
Use the AddBindingParameters method to provide binding elements with custom data to support the behavior.
Use the ApplyClientBehavior method to modify, examine, or insert extensions to a contract in a client application.
The ApplyDispatchBehavior method is not used in the current implementation of Silverlight.
Use the Validate method to ensure that a contract can support a particular feature.
objects can make use of any of these methods, but often only one is important; in such cases, the unused methods can return without any value.
All of the methods pass System.ServiceModel.Description.ContractDescription and System.ServiceModel.Description.ServiceEndpoint as parameters. These parameters are for examination; if you modify the objects the execution behavior is undefined.
types can be used on either the service or the client, or both.
To perform the customization task on the client for which it is intended, the object must be added to the Behaviors property prior to the construction of the client runtime, which occurs when ChannelFactory<TChannel>.CreateChannel is called. There are two ways to do this:
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.