Redigera

Dela via


DefaultPropertiesToSend.UseEncryption Property

Definition

Gets or sets a value that indicates whether to make the message private.

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

Property Value

true to require Message Queuing to encrypt the message; otherwise, false. The default is false.

Attributes

Remarks

If a message is private, its body is encrypted before it is sent and is decrypted when it is received. To send a private message, the sending application must specify that encryption be used and, optionally, which encryption algorithm to apply.

When sending private messages, it is not necessary that your application perform the message encryption. Message Queuing can encrypt the message body for you when your application sends messages within a Microsoft Windows 2000 enterprise where there is access to the directory service. When receiving private messages, it is always the receiving Queue Manager that decrypts the message body.

Applies to

See also