語言

MessageSecurityOverHttp.AlgorithmSuite 屬性

定義

規定用於 SOAP 層級安全訊息的演算法套件。

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

屬性值

SecurityAlgorithmSuite。 預設值為 Basic256。

例外狀況

範例

以下程式碼說明如何存取並設定此屬性。

WSHttpBinding binding = new WSHttpBinding();
binding.Security.Mode = SecurityMode.Message;
binding.Security.Message.AlgorithmSuite =
    System.ServiceModel.Security.SecurityAlgorithmSuite.Basic256;
Dim binding As New WSHttpBinding()
binding.Security.Mode = SecurityMode.Message
binding.Security.Message.AlgorithmSuite = _
System.ServiceModel.Security.SecurityAlgorithmSuite.Basic256

備註

此特性在使用非 Windows Communication Foundation(WCF)平台時尤為重要,該平台使用與預設不同的一組演算法。 在修改此設定時,你應該了解相關演算法的優缺點。

適用於