Rediger

Del via


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.

public:
 WSDualHttpBinding();
public WSDualHttpBinding ();
Public Sub New ()

Examples

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

WSDualHttpBinding binding = new WSDualHttpBinding();
Dim binding As New WSDualHttpBinding()

Applies to

WSDualHttpBinding(WSDualHttpSecurityMode)

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

public:
 WSDualHttpBinding(System::ServiceModel::WSDualHttpSecurityMode securityMode);
public WSDualHttpBinding (System.ServiceModel.WSDualHttpSecurityMode securityMode);
new System.ServiceModel.WSDualHttpBinding : System.ServiceModel.WSDualHttpSecurityMode -> System.ServiceModel.WSDualHttpBinding
Public Sub New (securityMode As WSDualHttpSecurityMode)

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.

WSDualHttpBinding bindingSecurityMode =
    new WSDualHttpBinding(WSDualHttpSecurityMode.Message);
Dim bindingSecurityMode As 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

WSDualHttpBinding(String)

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

public:
 WSDualHttpBinding(System::String ^ configName);
public WSDualHttpBinding (string configName);
new System.ServiceModel.WSDualHttpBinding : string -> System.ServiceModel.WSDualHttpBinding
Public Sub New (configName As String)

Parameters

configName
String

The binding configuration name for the WSHttpBindingElement.

Exceptions

The binding element with the name configurationName was not found.

Applies to