BindingContext Class
TOC
Collapse the table of content
Expand the table of content

BindingContext Class

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

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

System.Object
  System.ServiceModel.Channels.BindingContext

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

public class BindingContext

The BindingContext type exposes the following members.

  NameDescription
Public methodBindingContextInitializes a new instance of the BindingContext class for a specified binding and collection of binding parameters.
Top

  NameDescription
Public propertyBindingGets the binding for the channel built in the current context.
Public propertyBindingParametersGets the collection of binding parameters for the channel built in the current context.
Public propertyRemainingBindingElementsGets the binding elements that are used by other binding elements to construct the channel stack.
Top

  NameDescription
Public methodBuildInnerChannelFactory<TChannel>Builds the inner channel factory for channels of a specified type below the current channel factory.
Public methodCanBuildInnerChannelFactory<TChannel>Returns a value that indicates whether the inner channel factory can produce a specified type of channel.
Public methodCloneReturns a copy of the current channel build context.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetInnerProperty<T>Returns a typed object requested, if present, from the appropriate layer in the binding stack.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

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

Show:
© 2017 Microsoft