MessagePropertyFilter.DigitalSignature Vlastnost

Definice

Získá nebo nastaví hodnotu, která určuje, zda se mají načíst DigitalSignature informace o vlastnosti při příjmu nebo náhledu zprávy.

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

Hodnota vlastnosti

truepro příjem DigitalSignature informací, jinak . false Výchozí formát je false.

Atributy

Příklady

Následující příklad kódu ukazuje použití DigitalSignature vlastnosti .

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

Poznámky

Vlastnost DigitalSignatureMessage třídy určuje digitální podpis použitý k ověření zprávy. Ve většině případů je generována a nastavena službou Řízení front zpráv, když odesílající aplikace požaduje ověření.

Platí pro

Viz také