MessagePropertyFilter.SenderCertificate Propriedade
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Obtém ou define um valor que indica se as informações da propriedade devem ser recuperadas SenderCertificate ao receber ou espiar uma mensagem.
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
Valor da propriedade
true para receber SenderCertificate informações; caso contrário, false. O padrão é false.
- Atributos
Exemplos
O exemplo de código a seguir demonstra o uso da SenderCertificate propriedade.
// 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);
Comentários
A SenderCertificate propriedade da classe especifica o certificado de Message segurança usado para autenticar mensagens.