AsymmetricSecurityBindingElement.MessageProtectionOrder 屬性

定義

取得或設定此繫結的訊息加密和簽章順序。

public:
 property System::ServiceModel::Security::MessageProtectionOrder MessageProtectionOrder { System::ServiceModel::Security::MessageProtectionOrder get(); void set(System::ServiceModel::Security::MessageProtectionOrder value); };
public System.ServiceModel.Security.MessageProtectionOrder MessageProtectionOrder { get; set; }
member this.MessageProtectionOrder : System.ServiceModel.Security.MessageProtectionOrder with get, set
Public Property MessageProtectionOrder As MessageProtectionOrder

屬性值

其中一個 MessageProtectionOrder 值,表示保護訊息的方式。 預設為 SignBeforeEncrypt

例外狀況

值不是列舉的有效成員。

備註

注意

如果訊息本身沒有加密,則簽章項目也不會加密,即使 MessageProtectionOrder 屬性設定為 SignBeforeEncryptAndEncryptSignature 也一樣。 即使是系統提供的繫結,也會發生這種行為。 不過,WCF 所產生的 WSDL 仍包含判斷 <sp:EncryptSignature> 提示。

如需這些成員的清單及其說明,請參閱 MessageProtectionOrder

適用於