DefaultPropertiesToSend.EncryptionAlgorithm 属性
定义
获取或设置用于加密私有消息体的加密算法。Gets or sets the encryption algorithm used to encrypt the body of a private message.
public:
property System::Messaging::EncryptionAlgorithm EncryptionAlgorithm { System::Messaging::EncryptionAlgorithm get(); void set(System::Messaging::EncryptionAlgorithm value); };
[System.Messaging.MessagingDescription("MsgEncryptionAlgorithm")]
public System.Messaging.EncryptionAlgorithm EncryptionAlgorithm { get; set; }
[<System.Messaging.MessagingDescription("MsgEncryptionAlgorithm")>]
member this.EncryptionAlgorithm : System.Messaging.EncryptionAlgorithm with get, set
Public Property EncryptionAlgorithm As EncryptionAlgorithm
属性值
EncryptionAlgorithm 枚举值之一。One of the EncryptionAlgorithm enumeration values. 默认值为 RC2。The default is RC2.
- 属性
注解
如果消息是私有的,则在发送消息之前对其进行加密,并在收到消息时解密。If a message is private, it is encrypted before it is sent and is decrypted when it is received. EncryptionAlgorithm属性指定用于对专用消息的消息正文进行加密的算法。The EncryptionAlgorithm property specifies the algorithm used to encrypt the message body of a private message.
队列可能要求对传入消息进行加密。A queue can require that incoming messages be encrypted. 如果将非加密 (非私有) 消息发送到只接受私有消息的队列,或将私有消息发送到只接受非私有消息的队列,则队列将拒绝该消息。If a non-encrypted (non-private) message is sent to a queue that only accepts private messages, or if a private message is sent to a queue that only accepts non-private messages, the message is rejected by the queue. 如果消息被拒绝,则发送应用程序可以请求向发送应用程序返回否定确认消息。The sending application can request a negative acknowledgment message be returned to the sending application if a message was rejected.