MessagePropertyFilter.SenderCertificate Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy pobierać SenderCertificate informacje o właściwości podczas odbierania lub przeglądania komunikatu.

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

Wartość właściwości

true w celu otrzymywania SenderCertificate informacji; falsew przeciwnym razie . Wartość domyślna to false.

Atrybuty

Przykłady

W poniższym przykładzie kodu pokazano użycie SenderCertificate właściwości .

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

Uwagi

Właściwość SenderCertificateMessage klasy określa certyfikat zabezpieczeń używany do uwierzytelniania komunikatów.

Dotyczy

Zobacz też