共用方式為


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) 平臺時,此屬性最相關,該平臺使用一組演算法與預設值不同。 在修改這個設定時,您應該了解相關演算法的優點和缺點。

適用於