MessagePropertyFilter.DestinationSymmetricKey Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy pobierać DestinationSymmetricKey informacje o właściwości podczas odbierania lub przeglądania komunikatu.

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

Wartość właściwości

Boolean

true w celu otrzymywania DestinationSymmetricKey informacji; falsew przeciwnym razie . Wartość domyślna to false.

Atrybuty

Przykłady

W poniższym przykładzie kodu pokazano użycie DestinationSymmetricKey właściwości .

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

Uwagi

Właściwość DestinationSymmetricKey Message klasy określa klucz symetryczny używany do szyfrowania komunikatu. Jest to wymagane w przypadku wysyłania komunikatów zaszyfrowanych przez aplikację lub wysyłania zaszyfrowanych komunikatów do kolejki obcej.

Kolejka zagraniczna istnieje w systemie kolejkowania innym niż kolejkowanie komunikatów firmy Microsoft. Kolejkowanie komunikatów firmy Microsoft komunikuje się z takimi kolejkami za pośrednictwem aplikacji łącznika.

Dotyczy

Zobacz też