Message.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
.
- 屬性
例外狀況
篩選訊息佇列以忽略 EncryptionAlgorithm 屬性。The message queue is filtered to ignore the EncryptionAlgorithm property.
備註
如果訊息是私用 (加密) ,則會在接收時傳送和解密之前加密。If a message is private (encrypted), it is encrypted before it is sent and decrypted upon receipt. 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 an application sends a non-encrypted (non-private) message to a queue that accepts only private messages, or if it sends a private message to a queue that accepts only non-private messages, the queue rejects the message. 傳送應用程式可以要求在這種情況下傳回負認可訊息。The sending application can request that a negative acknowledgment message be returned in such a case.