DestinationSymmetricKey Property (Message)
Gets or sets the symmetric key used to encrypt application-encrypted messages or messages sent to foreign queues.
Syntax
'Declaration <ReadOnlyAttribute(True)> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <MessagingDescriptionAttribute("Specifies the symmetric key used to encrypt messages. Is required when you send application-encrypted messages.")> Public Property DestinationSymmetricKey As Byte()
'Usage Dim instance As Message Dim value() As Byte instance.DestinationSymmetricKey = value value = instance.DestinationSymmetricKey
[ReadOnly(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [MessagingDescription("Specifies the symmetric key used to encrypt messages. Is required when you send application-encrypted messages.")] public byte[] DestinationSymmetricKey {get; set;}
[ReadOnly(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [MessagingDescription("Specifies the symmetric key used to encrypt messages. Is required when you send application-encrypted messages.")] public: property array<byte>^ DestinationSymmetricKey { array<byte>^ get(); void set ( array<byte>^ value); }
Property Value
An array of byte values that specifies the destination symmetric key used to encrypt the message. The default is a zero-length array.Exceptions
Exception | Description |
---|---|
System.InvalidOperationException | The message queue is filtered to ignore the DestinationSymmetricKey property. |
System.ArgumentException | The DestinationSymmetricKey is null. |
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