MessagePropertyFilter.DestinationSymmetricKey Vlastnost

Definice

Získá nebo nastaví hodnotu, která označuje, zda načíst DestinationSymmetricKey informace o vlastnosti při přijetí 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

true k příjmu DestinationSymmetricKey informací; falsev opačném případě . 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 šifrovaných aplikací nebo při odesílání šifrovaných zpráv do cizí fronty.

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

Platí pro

Viz také