Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BindingContext Constructor (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.

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

public:
BindingContext(
	CustomBinding^ binding,
	BindingParameterCollection^ parameters,
	Uri^ listenUriBaseAddress,
	String^ listenUriRelativeAddress,
	ListenUriMode listenUriMode
)

Parameters

binding
Type: System.ServiceModel.Channels::CustomBinding^

The CustomBinding for the channel.

parameters
Type: System.ServiceModel.Channels::BindingParameterCollection^

The BindingParameterCollection for the channel.

listenUriBaseAddress
Type: System::Uri^

The Uri at which the service endpoint listens.

listenUriRelativeAddress
Type: System::String^

The relative address at which the service endpoint listens.

listenUriMode
Type: System.ServiceModel.Description::ListenUriMode

The ListenUriMode that indicates whether the transport must ensure that the URI provided for the service to listen on is unique.

Exception Condition
ArgumentNullException

binding is null.

ArgumentOutOfRangeException

The ListenUriMode is not defined.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft