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.
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. |
Available since 3.0