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) 平台使用一组不同于默认值的算法时,此属性最相关。 在对此设置进行修改时,应该注意相关算法的优缺点。

适用于