Uredi

Deli z drugimi prek


Message.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

Exceptions

The message queue is filtered to ignore the UseEncryption property.

Examples

The following code example gets and sets the value of a message's UseEncryption property.

Remarks

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

When sending private messages, your application does not need to perform the message encryption. Message Queuing can encrypt the message body for you if your application is sending messages within a Microsoft Windows 2000 enterprise, which has access to the directory service. When receiving private messages, the receiving Queue Manager always decrypts the message body.

Applies to

See also