WSDualHttpBinding Constructors

Definition

Initializes a new instance of the WSDualHttpBinding class.

Overloads

WSDualHttpBinding()

Initializes a new instance of the WSDualHttpBinding class.

WSDualHttpBinding(WSDualHttpSecurityMode)

Initializes a new instance of the WSDualHttpBinding class with a specified type of security used by the binding.

WSDualHttpBinding(String)

Initializes a new instance of the WSDualHttpBinding class with a binding specified by its configuration name.

WSDualHttpBinding()

Initializes a new instance of the WSDualHttpBinding class.

C#
public WSDualHttpBinding();

Examples

The following example shows how to use the parameterless constructor for wsDualHttpBinding.

C#
WSDualHttpBinding binding = new WSDualHttpBinding();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

WSDualHttpBinding(WSDualHttpSecurityMode)

Initializes a new instance of the WSDualHttpBinding class with a specified type of security used by the binding.

C#
public WSDualHttpBinding(System.ServiceModel.WSDualHttpSecurityMode securityMode);

Parameters

securityMode
WSDualHttpSecurityMode

The value of WSDualHttpSecurityMode that specifies the type of security that is used with the SOAP message and for the client.

Examples

The following example shows how to use the wsDualHttpBinding constructor with a security mode.

C#
WSDualHttpBinding bindingSecurityMode =
    new WSDualHttpBinding(WSDualHttpSecurityMode.Message);

Remarks

Reliable messaging is required by the WSDualHttpBinding, so there is no constructor that provides a switch to turn it off as there is on the WSHttpBinding(SecurityMode) constructor for the WSHttpBinding.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

WSDualHttpBinding(String)

Initializes a new instance of the WSDualHttpBinding class with a binding specified by its configuration name.

C#
public WSDualHttpBinding(string configName);

Parameters

configName
String

The binding configuration name for the WSHttpBindingElement.

Exceptions

The binding element with the name configurationName was not found.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1