Redigera

Dela via


MsmqIntegrationBinding Constructors

Definition

Initializes a new instance of the MsmqIntegrationBinding class.

Overloads

MsmqIntegrationBinding()

Initializes a new instance of the MsmqIntegrationBinding class.

MsmqIntegrationBinding(MsmqIntegrationSecurityMode)

Initializes a new instance of the MsmqIntegrationBinding class by using the specified MsmqIntegrationSecurityMode.

MsmqIntegrationBinding(String)

Initializes a new instance of the MsmqIntegrationBinding class from the settings of a specified configuration binding element.

MsmqIntegrationBinding()

Initializes a new instance of the MsmqIntegrationBinding class.

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

Applies to

MsmqIntegrationBinding(MsmqIntegrationSecurityMode)

Initializes a new instance of the MsmqIntegrationBinding class by using the specified MsmqIntegrationSecurityMode.

public:
 MsmqIntegrationBinding(System::ServiceModel::MsmqIntegration::MsmqIntegrationSecurityMode securityMode);
public MsmqIntegrationBinding (System.ServiceModel.MsmqIntegration.MsmqIntegrationSecurityMode securityMode);
new System.ServiceModel.MsmqIntegration.MsmqIntegrationBinding : System.ServiceModel.MsmqIntegration.MsmqIntegrationSecurityMode -> System.ServiceModel.MsmqIntegration.MsmqIntegrationBinding
Public Sub New (securityMode As MsmqIntegrationSecurityMode)

Parameters

securityMode
MsmqIntegrationSecurityMode

The security mode supported by the Message Queuing (MSMQ) integration channel.

Exceptions

The value is not within the range of MsmqIntegrationSecurityMode values.

Examples

The following code illustrates how to instantiate an instance of the MsmqIntegrationBinding binding, specifying the MsmqIntegrationSecurityMode:

MsmqIntegrationBinding binding = new MsmqIntegrationBinding(MsmqIntegrationSecurityMode.Transport);
Dim binding As New MsmqIntegrationBinding(MsmqIntegrationSecurityMode.Transport)

Remarks

This method enables you to instantiate a new instance of the MsmqIntegrationBinding and pass in a security mode.

Applies to

MsmqIntegrationBinding(String)

Initializes a new instance of the MsmqIntegrationBinding class from the settings of a specified configuration binding element.

public:
 MsmqIntegrationBinding(System::String ^ configurationName);
public MsmqIntegrationBinding (string configurationName);
new System.ServiceModel.MsmqIntegration.MsmqIntegrationBinding : string -> System.ServiceModel.MsmqIntegration.MsmqIntegrationBinding
Public Sub New (configurationName As String)

Parameters

configurationName
String

The value of the configurationName attribute that identifies the binding element whose settings are used to initialize the binding.

Examples

The following code shows how to create an instance of the MsmqIntegrationBinding binding and initialize it by passing in the name of the binding element:

MsmqIntegrationBinding binding = new MsmqIntegrationBinding("MyBindingConfig");
Dim binding As New MsmqIntegrationBinding("MyBindingConfig")

Remarks

This method allows you to place the binding settings in a configuration file but add the actual binding in code.

Applies to