MessagePropertyFilter.DigitalSignature Свойство

Определение

Получает или задает значение, указывающее, следует ли извлекать сведения свойства DigitalSignature при получении или считывании сообщения.

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

Значение свойства

Значение true означает получение сведений DigitalSignature, в противном случае — значение false. Значение по умолчанию — false.

Атрибуты

Примеры

В следующем примере кода демонстрируется использование 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);
// 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);

Комментарии

Свойство DigitalSignatureMessage класса указывает цифровую подпись, используемую для проверки подлинности сообщения. В большинстве случаев он создается и задается службой очереди сообщений, когда отправляющее приложение запрашивает проверку подлинности.

Применяется к

См. также раздел