MessageSecurityOverHttp.AlgorithmSuite 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定用于 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。
例外
值为 AlgorithmSuitenull.
示例
以下代码演示如何访问和设置此属性。
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)平台时,此属性最相关。 在对此设置进行修改时,应注意相关算法的优缺点。