ערוך

שתף באמצעות


WS2007HttpBinding Constructors

Definition

Initializes a new instance of the WS2007HttpBinding class.

Overloads

WS2007HttpBinding()

Initializes a new instance of the WS2007HttpBinding class.

WS2007HttpBinding(SecurityMode)

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

WS2007HttpBinding(String)

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

WS2007HttpBinding(SecurityMode, Boolean)

Initializes a new instance of the WS2007HttpBinding class with a specified type of security used by the binding and a value that indicates whether a reliable session is enabled.

WS2007HttpBinding()

Source:
WS2007HttpBinding.cs
Source:
WS2007HttpBinding.cs
Source:
WS2007HttpBinding.cs

Initializes a new instance of the WS2007HttpBinding class.

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

Examples

The following example shows how to initialize a new instance of the WS2007HttpBinding class.

Remarks

This constructor initializes an instance of the WS2007HttpBinding class and sets the MessageSecurityVersion, ReliableMessagingVersion, and TransactionProtocol properties that specify the WS-Security 1.1, WS-Trust 1.3, WS-SecureConversation 1.3, WS-SecurityPolicy 1.2, and WS-I Basic Security Profile 1.0 security protocols.

Applies to

WS2007HttpBinding(SecurityMode)

Source:
WS2007HttpBinding.cs
Source:
WS2007HttpBinding.cs
Source:
WS2007HttpBinding.cs

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

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

Parameters

securityMode
SecurityMode

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

Examples

The following example shows how to initialize a new instance of the WS2007HttpBinding class with a securityMode parameter.

Applies to

WS2007HttpBinding(String)

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

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

Parameters

configName
String

The binding configuration name for the WS2007HttpBindingElement.

Exceptions

The binding element with the name configName was not found.

Applies to

WS2007HttpBinding(SecurityMode, Boolean)

Source:
WS2007HttpBinding.cs
Source:
WS2007HttpBinding.cs
Source:
WS2007HttpBinding.cs

Initializes a new instance of the WS2007HttpBinding class with a specified type of security used by the binding and a value that indicates whether a reliable session is enabled.

public:
 WS2007HttpBinding(System::ServiceModel::SecurityMode securityMode, bool reliableSessionEnabled);
public WS2007HttpBinding (System.ServiceModel.SecurityMode securityMode, bool reliableSessionEnabled);
new System.ServiceModel.WS2007HttpBinding : System.ServiceModel.SecurityMode * bool -> System.ServiceModel.WS2007HttpBinding
Public Sub New (securityMode As SecurityMode, reliableSessionEnabled As Boolean)

Parameters

securityMode
SecurityMode

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

reliableSessionEnabled
Boolean

true if a reliable session is enabled; otherwise, false.

Remarks

This constructor initializes an instance of the WS2007HttpBinding class and sets the MessageSecurityVersion, ReliableMessagingVersion, and TransactionProtocol properties that specify the WS-Security 1.1, WS-Trust 1.3, WS-SecureConversation 1.3, WS-SecurityPolicy 1.2, and WS-I Basic Security Profile 1.0 security protocols.

Applies to