MessagePropertyFilter.SenderCertificate Proprietà

Definizione

Ottiene o imposta un valore che indica se recuperare le informazioni della proprietà SenderCertificate quando si riceve o si visualizza un messaggio.

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

Valore della proprietà

true per ricevere le informazioni di SenderCertificate; false in caso contrario. Il valore predefinito è false.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato l'uso SenderCertificate della proprietà.

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

Commenti

La SenderCertificate proprietà della classe specifica il certificato di Message sicurezza usato per autenticare i messaggi.

Si applica a

Vedi anche