Bewerken

Delen via


NetMsmqSecurity.Mode Property

Definition

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

public:
 property System::ServiceModel::NetMsmqSecurityMode Mode { System::ServiceModel::NetMsmqSecurityMode get(); void set(System::ServiceModel::NetMsmqSecurityMode value); };
public System.ServiceModel.NetMsmqSecurityMode Mode { get; set; }
member this.Mode : System.ServiceModel.NetMsmqSecurityMode with get, set
Public Property Mode As NetMsmqSecurityMode

Property Value

The NetMsmqSecurityMode that is associated with the NetMsmqBinding binding.

Exceptions

Value is not one of NetMsmqSecurityMode values.

Examples

NetMsmqSecurityMode secMode = security.Mode;
Dim 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