Share via


MessagePropertyFilter.DestinationSymmetricKey Vlastnost

Definice

Získá nebo nastaví hodnotu, která určuje, zda se mají načíst DestinationSymmetricKey informace o vlastnosti při příjmu nebo náhledu zprávy.

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

Hodnota vlastnosti

truepro příjem DestinationSymmetricKey informací, jinak . false Výchozí formát je false.

Atributy

Příklady

Následující příklad kódu ukazuje použití DestinationSymmetricKey vlastnosti .

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

Poznámky

Vlastnost DestinationSymmetricKeyMessage třídy určuje symetrický klíč použitý k šifrování zprávy. Vyžaduje se při odesílání zpráv zašifrovaných aplikací nebo při odesílání šifrovaných zpráv do cizí fronty.

Cizí fronta existuje v jiném systému řízení front, než je služba Řízení front zpráv společnosti Microsoft. Služba Microsoft Message Queuing komunikuje s těmito frontami prostřednictvím aplikace konektoru.

Platí pro

Viz také