NetMsmqBinding.Security Property

Definition

Gets or sets the NetMsmqSecurity that is associated with this binding.

C#
public System.ServiceModel.NetMsmqSecurity Security { get; }
C#
public System.ServiceModel.NetMsmqSecurity Security { get; set; }

Property Value

The NetMsmqSecurity that is associated with this binding.

Examples

The following code shows how to get the NetMsmqSecurity object.

C#
NetMsmqBinding binding = new NetMsmqBinding();
    NetMsmqSecurity security = binding.Security;

Remarks

NetMsmqSecurity is an encapsulation of both Message Queuing (MSMQ) transport and SOAP security. It specifies whether transport or SOAP security is enabled and, if so, what authentication mode and protection levels are in use.

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