NetMsmqBinding.Security Property

 

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

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public NetMsmqSecurity Security { get; set; }

Property Value

Type: System.ServiceModel.NetMsmqSecurity

The NetMsmqSecurity that is associated with this binding.

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.

The following code shows how to get the NetMsmqSecurity object.

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

.NET Framework
Available since 3.0
Return to top
Show: