NetMsmqSecurity.Mode Property

Definition

Gets or sets the NetMsmqSecurityMode that is associated with the NetMsmqBinding binding.

C#
public System.ServiceModel.NetMsmqSecurityMode Mode { get; set; }

Property Value

The NetMsmqSecurityMode that is associated with the NetMsmqBinding binding.

Exceptions

Value is not one of NetMsmqSecurityMode values.

Examples

C#
NetMsmqSecurityMode secMode = security.Mode;

Remarks

This property determines the type of security used by the associated NetMsmqBinding. The following list describes the acceptable values:

  • None - no security is used.

  • Transport - transport security is used.

  • Message - message-based security is used.

  • Both - both message-based security and transport security is used.

Applies to

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