Udostępnij przez


MessagePropertyFilter.DestinationSymmetricKey Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy pobierać DestinationSymmetricKey informacje o właściwości podczas odbierania lub podglądu 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

true aby otrzymywać DestinationSymmetricKey informacje; w przeciwnym razie false. Wartość domyślna to false.

Atrybuty

Przykłady

Poniższy przykład kodu przedstawia 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ść DestinationSymmetricKeyMessage klasy określa klucz symetryczny używany do szyfrowania komunikatu. Jest to wymagane podczas wysyłania wiadomości zaszyfrowanych przez aplikację lub wysyłania zaszyfrowanych wiadomości do obcej kolejki.

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ż