Freigeben über


MessagePropertyFilter.EncryptionAlgorithm Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob Eigenschaftsinformationen beim Empfangen oder Anzeigen einer Nachricht abgerufen EncryptionAlgorithm werden sollen.

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

Eigenschaftswert

true informationen zu erhalten EncryptionAlgorithm ; falseandernfalls . Der Standardwert lautet false.

Attribute

Beispiele

Im folgenden Codebeispiel wird die Verwendung der EncryptionAlgorithm Eigenschaft veranschaulicht.

// Set the queue's MessageReadPropertyFilter property 
// to enable the message's EncryptionAlgorithm property.
queue->MessageReadPropertyFilter->
    EncryptionAlgorithm = true;

// Peek at the message. Time out after ten seconds 
// in case the message was not delivered.
orderMessage = queue->Peek(TimeSpan::FromSeconds(10.0));

// Display the value of the message's 
// EncryptionAlgorithm property.
Console::WriteLine("Message.EncryptionAlgorithm: {0}", 
    orderMessage->EncryptionAlgorithm);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's EncryptionAlgorithm property.
queue.MessageReadPropertyFilter.EncryptionAlgorithm = true;

// Peek at the message. Time out after ten seconds in case the message
// was not delivered.
orderMessage = queue.Peek(TimeSpan.FromSeconds(10.0));

// Display the value of the message's EncryptionAlgorithm property.
Console.WriteLine("Message.EncryptionAlgorithm: {0}",
    orderMessage.EncryptionAlgorithm);

Hinweise

Wenn eine Nachricht privat ist, wird sie verschlüsselt, bevor sie gesendet und entschlüsselt wird, wenn sie empfangen wird. Die EncryptionAlgorithm Eigenschaft der Message Klasse gibt den Algorithmus an, der zum Verschlüsseln des Nachrichtentexts einer privaten Nachricht verwendet wird.

Gilt für:

Weitere Informationen