EncryptAlgorithm
MSMQMessage

The EncryptAlgorithm property specifies the encryption algorithm used by MSMQ to encrypt private messages.

Type: Long
Run time: read-write

Syntax

object.EncrypAlgorithm
 
Syntax Element Description
object Message (MSMQMessage) object that represents the message.

Settings

The EncryptAlgorithm property can have any one of the following values:

MQMSG_RC2
Default.
MQMSG_RC4

Message encryption is based on public-key encryption using the Microsoft® Cryptography API with an underlying RSA provider.

Remarks

EncryptAlgorithm is used with the MSMQMessage object's PrivLevel property to send private messages.

For a discussion on private messages, see Private Messages.

For a complete example of sending a private message (including setting the privacy level of a queue), see Sending Private Messages.

QuickInfo

  Windows NT: Requires version 4.0 SP3 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in mqoai.h.
  Import Library: Use mqoa.lib.
  Unicode: Defined only as Unicode.