System.Messaging Reference (Document! X Sample)



System.Messaging Namespace > Message Class : SenderCertificate Property
SenderCertificate Property (Message)
Gets or sets the security certificate used to authenticate messages.
Syntax
'Declaration
 
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<ReadOnlyAttribute(True)>
<MessagingDescriptionAttribute("Specifies the security certificate used to authenticate messages.")>
Public Property SenderCertificate As Byte()
'Usage
 
Dim instance As Message
Dim value() As Byte
 
instance.SenderCertificate = value
 
value = instance.SenderCertificate
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[ReadOnly(true)]
[MessagingDescription("Specifies the security certificate used to authenticate messages.")]
public byte[] SenderCertificate {get; set;}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[ReadOnly(true)]
[MessagingDescription("Specifies the security certificate used to authenticate messages.")]
public:
property array<byte>^ SenderCertificate {
   array<byte>^ get();
   void set (    array<byte>^ value);
}

Property Value

An array of byte values that represents a security certificate, which Message Queuing uses to verify the sender of the message. The default is a zero-length array.
Exceptions
ExceptionDescription
The message queue is filtered to ignore the SenderCertificate property.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also