This documentation is archived and is not being maintained.

Message.DigitalSignature Property

Gets or sets the digital signature that Message Queuing uses to authenticate the message.

Namespace:  System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public byte[] DigitalSignature { get; set; }

Property Value

Type: System.Byte[]
An array of byte values that specifies the Message Queuing 1.0 digital signature used to authenticate the message. The default is a zero-length array.


The message queue is filtered to ignore the DigitalSignature property.


The DigitalSignature property is null.

Message Queuing uses the digital signature when authenticating messages that were sent by Message Queuing version 1.0. In most cases, Message Queuing generates and sets the DigitalSignature property when the sending application requests authentication. The receiving application uses this property to retrieve the digital signature attached to the message.

You can only use the DigitalSignature property when running Message Queuing version 2.0. The sending application must specify Message Queuing version 1.0 signatures when requesting authentication. If the sending application sends a Message Queuing version 2.0 signature, this property contains a buffer of four bytes, each containing zero.

The DigitalSignature property, together with the SenderCertificate property, is also used by connector applications when a message is sent. In this scenario, the connector application—rather than Message Queuing—generates the digital signature, which it bases on the certificate of the user sending the message.

The DigitalSignature property has a maximum array size of 256.

When you set the DigitalSignature property, you must also set the ConnectorType property. When a message is sent, Message Queuing ignores the DigitalSignature property if the ConnectorType property is not also set.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0