MessagePropertyFilter.DestinationSymmetricKey Propiedad

Definición

Obtiene o establece un valor que indica si se debe recuperar información de la propiedad DestinationSymmetricKey al recibir un mensaje o leerlo.

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

Valor de propiedad

true para recibir información de DestinationSymmetricKey; en cualquier otro caso, false. De manera predeterminada, es false.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra el uso de la DestinationSymmetricKey propiedad .

// 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);

Comentarios

La DestinationSymmetricKey propiedad de la Message clase especifica la clave simétrica utilizada para cifrar el mensaje. Es necesario cuando se envían mensajes cifrados por la aplicación o cuando se envían mensajes cifrados a una cola externa.

Existe una cola externa en un sistema de puesta en cola distinto de Microsoft Message Queuing. Microsoft Message Queuing se comunica con estas colas a través de una aplicación de conector.

Se aplica a

Consulte también