Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BindingContext Class

Provides information about the addresses, bindings, binding elements and binding parameters required to build the channel listeners and channel factories.

System.Object
  System.ServiceModel.Channels.BindingContext

Namespace:  System.ServiceModel.Channels
Assemblies:   System.ServiceModel.Primitives (in System.ServiceModel.Primitives.dll)
  System.ServiceModel (in System.ServiceModel.dll)

public class BindingContext

The BindingContext type exposes the following members.

  NameDescription
Public methodSupported by Portable Class LibraryBindingContext(CustomBinding, BindingParameterCollection)Initializes a new instance of the BindingContext class for a specified binding and collection of binding parameters.
Public methodBindingContext(CustomBinding, BindingParameterCollection, Uri, String, ListenUriMode)Initializes a new instance of the BindingContext class for a specified binding, collection of binding parameters, and address for the endpoint at which the service listens.
Top

  NameDescription
Public propertySupported by Portable Class LibraryBindingGets the binding for the channel built in the current context.
Public propertySupported by Portable Class LibraryBindingParametersGets the collection of binding parameters for the channel built in the current context.
Public propertyListenUriBaseAddressGets or sets the URI that provides the base address at which the service endpoint listens.
Public propertyListenUriModeGets or sets a value that indicates whether the transport must ensure that the URI provided for the service to listen on is unique.
Public propertyListenUriRelativeAddressGets or sets the URI that provides the relative address at which the service endpoint listens.
Public propertySupported by Portable Class LibraryRemainingBindingElementsGets the binding elements that are used by other binding elements to construct the channel stack.
Top

  NameDescription
Public methodSupported by Portable Class LibraryBuildInnerChannelFactory<TChannel>Builds the inner channel factory for channels of a specified type below the current channel factory.
Public methodBuildInnerChannelListener<TChannel>Builds an inner channel listener that listens for a specified type of channel.
Public methodSupported by Portable Class LibraryCanBuildInnerChannelFactory<TChannel>Returns a value that indicates whether the inner channel factory can produce a specified type of channel.
Public methodCanBuildInnerChannelListener<TChannel>Returns a value that indicates whether the inner channel listener can be built to listen for a specified type of channel.
Public methodSupported by Portable Class LibraryCloneReturns a copy of the current channel build context.
Public methodSupported by Portable Class LibraryEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodSupported by Portable Class LibraryFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Portable Class LibraryGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by Portable Class LibraryGetInnerProperty<T>Returns a typed object requested, if present, from the appropriate layer in the binding stack.
Public methodSupported by Portable Class LibraryGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Portable Class LibraryMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Portable Class LibraryToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

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:
© 2015 Microsoft