Message.EncryptionAlgorithm 屬性

定義

取得或設定用來加密私用訊息主體的加密演算法。

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 列舉值。 預設為 RC2

屬性

例外狀況

篩選訊息佇列以忽略 EncryptionAlgorithm 屬性。

備註

如果訊息是私人 (加密) ,則會在收到時先進行加密,再傳送和解密訊息。 屬性 EncryptionAlgorithm 會指定用來加密私人訊息訊息內文的演算法。

佇列可能需要加密傳入的訊息。 如果應用程式將非加密 (非私人) 訊息傳送至只接受私人訊息的佇列,或將私人訊息傳送至只接受非私人訊息的佇列,則佇列會拒絕訊息。 傳送的應用程式可以要求在這類情況下傳回負通知訊息。

適用於

另請參閱