MessagePropertyFilter.DestinationSymmetricKey Propriedade

Definição

Recebe ou define um valor que indica se deve recuperar DestinationSymmetricKey informação de propriedade ao receber ou espreitar uma mensagem.

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 Propriedade

true para receber DestinationSymmetricKey informação; caso contrário, false. A predefinição é false.

Atributos

Exemplos

O seguinte exemplo de código demonstra a utilização da DestinationSymmetricKey propriedade.

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

Observações

A DestinationSymmetricKey propriedade da Message classe especifica a chave simétrica usada para encriptar a mensagem. É obrigatória quando envia mensagens encriptadas por aplicações, ou quando envia mensagens encriptadas para uma fila estrangeira.

Existe uma fila estrangeira num sistema de fila diferente do Microsoft Message Queuing. A Microsoft Message Queuing comunica com essas filas através de uma aplicação conector.

Aplica-se a

Ver também