共用方式為


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 屬性會指定用來驗證訊息的數字簽名。 在大部分情況下,傳送應用程式要求驗證時,會由消息佇列產生和設定。

適用於

另請參閱