System.Messaging Reference (Document! X Sample)



System.Messaging Namespace > Message Class : EncryptionAlgorithm Property
EncryptionAlgorithm Property (Message)
Gets or sets the encryption algorithm used to encrypt the body of a private message.
Syntax
'Declaration
 
<ReadOnlyAttribute(True)>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<MessagingDescriptionAttribute("Specifies the encryption algorithm used to encrypt the message body of a private message.")>
Public Property EncryptionAlgorithm As EncryptionAlgorithm
'Usage
 
Dim instance As Message
Dim value As EncryptionAlgorithm
 
instance.EncryptionAlgorithm = value
 
value = instance.EncryptionAlgorithm
[ReadOnly(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[MessagingDescription("Specifies the encryption algorithm used to encrypt the message body of a private message.")]
public EncryptionAlgorithm EncryptionAlgorithm {get; set;}
[ReadOnly(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[MessagingDescription("Specifies the encryption algorithm used to encrypt the message body of a private message.")]
public:
property EncryptionAlgorithm EncryptionAlgorithm {
   EncryptionAlgorithm get();
   void set (    EncryptionAlgorithm value);
}

Property Value

One of the EncryptionAlgorithm enumeration values. The default is RC2.
Exceptions
ExceptionDescription
The message queue is filtered to ignore the EncryptionAlgorithm property.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also