EncryptAlgorithm
MSMQMessage

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

Quick Info

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.


© 1997 by Microsoft Corporation. All rights reserved.