MessagePropertyFilter.DigitalSignature Właściwość

Definicja

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

public:
 property bool DigitalSignature { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgDigitalSignature")]
public bool DigitalSignature { get; set; }
[<System.Messaging.MessagingDescription("MsgDigitalSignature")>]
member this.DigitalSignature : bool with get, set
Public Property DigitalSignature As Boolean

Wartość właściwości

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

Atrybuty

Przykłady

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

// Set the queue's MessageReadPropertyFilter property 
// to enable the message's DigitalSignature property.
queue->MessageReadPropertyFilter->
    DigitalSignature = 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 
// DigitalSignature property.
Console::WriteLine("Message.DigitalSignature: {0}", 
    orderMessage->DigitalSignature);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's DigitalSignature property.
queue.MessageReadPropertyFilter.DigitalSignature = 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 DigitalSignature property.
Console.WriteLine("Message.DigitalSignature: {0}",
    orderMessage.DigitalSignature);

Uwagi

Właściwość DigitalSignatureMessage klasy określa podpis cyfrowy używany do uwierzytelniania komunikatu. W większości przypadków jest generowany i ustawiany przez kolejkowanie komunikatów podczas wysyłania żądań uwierzytelnienia przez aplikację.

Dotyczy

Zobacz też