MessagePropertyFilter.DestinationSymmetricKey Proprietà

Definizione

Ottiene o imposta un valore che indica se recuperare le informazioni della proprietà DestinationSymmetricKey quando si riceve o si visualizza un messaggio.

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

Valore della proprietà

true per ricevere le informazioni di DestinationSymmetricKey; false in caso contrario. Il valore predefinito è false.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato l'uso della DestinationSymmetricKey proprietà .

// Set the queue's MessageReadPropertyFilter property 
// to enable the message's 
// DestinationSymmetricKey property.
queue->MessageReadPropertyFilter->
    DestinationSymmetricKey = 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 
// DestinationSymmetricKey property.
Console::WriteLine(
    "Message.DestinationSymmetricKey: {0}", 
    orderMessage->DestinationSymmetricKey);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's DestinationSymmetricKey property.
queue.MessageReadPropertyFilter.DestinationSymmetricKey = 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 DestinationSymmetricKey property.
Console.WriteLine("Message.DestinationSymmetricKey: {0}",
    orderMessage.DestinationSymmetricKey);

Commenti

La DestinationSymmetricKey proprietà della Message classe specifica la chiave simmetrica utilizzata per crittografare il messaggio. È necessario quando si inviano messaggi crittografati dall'applicazione o quando si inviano messaggi crittografati a una coda esterna.

Esiste una coda esterna in un sistema di accodamento diverso da Microsoft Accodamento messaggi. Microsoft Accodamento messaggi comunica con tali code tramite un'applicazione connettore.

Si applica a

Vedi anche