MessagePropertyFilter.DestinationSymmetricKey Vlastnost
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
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í; false
v 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é
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro