DefaultPropertiesToSend.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 會指定用來加密私用訊息內文的演算法。

佇列可能需要加密傳入的訊息。 如果非加密 (非私人) 訊息傳送至只接受私人訊息的佇列,或如果私人訊息傳送至只接受非私人訊息的佇列,佇列就會拒絕訊息。 如果訊息遭到拒絕,傳送應用程式可以要求將負通知訊息傳回給傳送應用程式。

適用於

另請參閱