DefaultPropertiesToSend.EncryptionAlgorithm Property

Definition

Gets or sets the encryption algorithm used to encrypt the body of a private message.

public:
 property System::Messaging::EncryptionAlgorithm EncryptionAlgorithm { System::Messaging::EncryptionAlgorithm get(); void set(System::Messaging::EncryptionAlgorithm value); };
[System.Messaging.MessagingDescription("MsgEncryptionAlgorithm")]
public System.Messaging.EncryptionAlgorithm EncryptionAlgorithm { get; set; }
[<System.Messaging.MessagingDescription("MsgEncryptionAlgorithm")>]
member this.EncryptionAlgorithm : System.Messaging.EncryptionAlgorithm with get, set
Public Property EncryptionAlgorithm As EncryptionAlgorithm

Property Value

One of the EncryptionAlgorithm enumeration values. The default is RC2.

Attributes

Remarks

If a message is private, it is encrypted before it is sent and is decrypted when it is received. The EncryptionAlgorithm property specifies the algorithm used to encrypt the message body of a private message.

A queue can require that incoming messages be encrypted. If a non-encrypted (non-private) message is sent to a queue that only accepts private messages, or if a private message is sent to a queue that only accepts non-private messages, the message is rejected by the queue. The sending application can request a negative acknowledgment message be returned to the sending application if a message was rejected.

Applies to

See also