Gets or sets a value indicating whether the queue only accepts non-private (non-encrypted) messages.
[Visual Basic] Overridable Public Property EncryptionRequired As _ EncryptionRequired [C#] public EncryptionRequired EncryptionRequired {virtual get; virtual set;} [C++] public: __property virtual EncryptionRequired get_EncryptionRequired(); public: __property virtual void set_EncryptionRequired(EncryptionRequired); [JScript] public function get EncryptionRequired() : EncryptionRequired; public function set EncryptionRequired(EncryptionRequired);
One of the EncryptionRequired values. The default is None.
Exception Type | Condition |
---|---|
MessageQueueException | The attempt to get or set the encryption level generated an internal error on the message queue component. The error is specified by the given status message. |
When you specify that encryption is required on the messages sent to a queue, only the body of the message is encrypted. Other members, such as the message Label or SenderId properties, cannot be encrypted.
MessageQueue Class | MessageQueue Members | System.Messaging Namespace