MessagePropertyFilter.SenderCertificate 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á určuje, zda se mají načíst SenderCertificate informace o vlastnosti při přijetí nebo náhledu zprávy.
public:
property bool SenderCertificate { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgSenderCertificate")]
public bool SenderCertificate { get; set; }
[<System.Messaging.MessagingDescription("MsgSenderCertificate")>]
member this.SenderCertificate : bool with get, set
Public Property SenderCertificate As Boolean
Hodnota vlastnosti
true
SenderCertificate přijímat informace, jinak . false Výchozí hodnota je false.
- Atributy
Příklady
Následující příklad kódu ukazuje použití SenderCertificate vlastnosti.
// Set the queue's MessageReadPropertyFilter property
// to enable the message's SenderCertificate property.
queue->MessageReadPropertyFilter->
SenderCertificate = 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
// SenderCertificate property.
Console::WriteLine("Message.SenderCertificate: {0}",
orderMessage->SenderCertificate);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's SenderCertificate property.
queue.MessageReadPropertyFilter.SenderCertificate = 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 SenderCertificate property.
Console.WriteLine("Message.SenderCertificate: {0}",
orderMessage.SenderCertificate);
Poznámky
Vlastnost SenderCertificateMessage třídy určuje certifikát zabezpečení použitý k ověřování zpráv.