共用方式為


SecurityAlgorithmSuite.Basic256 屬性

定義

取得演算法套件,此套件會使用 256-bit Basic 做為訊息加密演算法。

public:
 static property System::ServiceModel::Security::SecurityAlgorithmSuite ^ Basic256 { System::ServiceModel::Security::SecurityAlgorithmSuite ^ get(); };
public static System.ServiceModel.Security.SecurityAlgorithmSuite Basic256 { get; }
member this.Basic256 : System.ServiceModel.Security.SecurityAlgorithmSuite
Public Shared ReadOnly Property Basic256 As SecurityAlgorithmSuite

屬性值

SecurityAlgorithmSuite

使用 256 位 Basic 做為訊息加密演算法的演算法套件。

範例

下列程式碼將示範如何將 AlgorithmSuite 設定為這個屬性。

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

備註

根據預設,會使用 AES-256 做為加密演算法。

適用於