Udostępnij za pośrednictwem


BindingContext Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides information about the addresses, bindings, binding elements and binding parameters required to build the channel factories on a Silverlight 5 client.

Inheritance Hierarchy

System.Object
  System.ServiceModel.Channels.BindingContext

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

Syntax

'Declaration
Public Class BindingContext
public class BindingContext

The BindingContext type exposes the following members.

Constructors

  Name Description
Public methodSupported by Silverlight for Windows Phone BindingContext Initializes a new instance of the BindingContext class for a specified binding and collection of binding parameters.

Top

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone Binding Gets the binding for the channel built in the current context.
Public propertySupported by Silverlight for Windows Phone BindingParameters Gets the collection of binding parameters for the channel built in the current context.
Public propertySupported by Silverlight for Windows Phone RemainingBindingElements Gets the binding elements that are used by other binding elements to construct the channel stack.

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone BuildInnerChannelFactory<TChannel> Builds the inner channel factory for channels of a specified type below the current channel factory.
Public methodSupported by Silverlight for Windows Phone CanBuildInnerChannelFactory<TChannel> Returns a value that indicates whether the inner channel factory can produce a specified type of channel.
Public methodSupported by Silverlight for Windows Phone Clone Returns a copy of the current channel build context.
Public methodSupported by Silverlight for Windows Phone Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetInnerProperty<T> Returns a typed object requested, if present, from the appropriate layer in the binding stack.
Public methodSupported by Silverlight for Windows Phone GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

The channel factories, in turn, construct the channel stacks used to process outgoing messages. The binding context also provides the linkage to the inner channel factories that are used to order the channels in the stack. The binding context basically stores all of the dynamic information required during the construction of the channel stack.

Version Information

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

Platforms

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.