Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
public class BindingContext

The BindingContext type exposes the following members.

  NameDescription
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsBindingContext(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 LibrarySupported in .NET for Windows Store appsBindingGets the binding for the channel built in the current context.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsBindingParametersGets 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 LibrarySupported in .NET for Windows Store appsRemainingBindingElementsGets the binding elements that are used by other binding elements to construct the channel stack.
Top
  NameDescription
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsBuildInnerChannelFactory<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 LibrarySupported in .NET for Windows Store appsCanBuildInnerChannelFactory<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 LibrarySupported in .NET for Windows Store appsCloneReturns a copy of the current channel build context.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsFinalizeAllows 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 LibrarySupported in .NET for Windows Store appsGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetInnerProperty<T>Returns a typed object requested, if present, from the appropriate layer in the binding stack.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsToStringReturns 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.5.1, 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

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone 8, Silverlight 8.1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.