WSDualHttpBinding Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the WSDualHttpBinding class.
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. |
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
.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 |
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
.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 |
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
.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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: