WSDualHttpSecurity.Message 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 WSDualHttpBinding 的消息级安全性属性。
public:
property System::ServiceModel::MessageSecurityOverHttp ^ Message { System::ServiceModel::MessageSecurityOverHttp ^ get(); };
public:
property System::ServiceModel::MessageSecurityOverHttp ^ Message { System::ServiceModel::MessageSecurityOverHttp ^ get(); void set(System::ServiceModel::MessageSecurityOverHttp ^ value); };
public System.ServiceModel.MessageSecurityOverHttp Message { get; }
public System.ServiceModel.MessageSecurityOverHttp Message { get; set; }
member this.Message : System.ServiceModel.MessageSecurityOverHttp
member this.Message : System.ServiceModel.MessageSecurityOverHttp with get, set
Public ReadOnly Property Message As MessageSecurityOverHttp
Public Property Message As MessageSecurityOverHttp
属性值
一个 MessageSecurityOverHttp 值。 默认值包括:ClientCredentialType 为 Windows,AlgorithmSuite 为 Basic256,以及 NegotiateServiceCredential 为 true
。
示例
下面的代码演示如何通过访问此属性设置 AlgorithmSuite 属性。
WSDualHttpBinding binding3 = new WSDualHttpBinding();
binding3.Security.Mode = WSDualHttpSecurityMode.None;
binding3.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256;
binding3.MessageEncoding = WSMessageEncoding.Mtom;
Dim binding3 As New WSDualHttpBinding()
binding3.Security.Mode = WSDualHttpSecurityMode.None
binding3.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256
binding3.MessageEncoding = WSMessageEncoding.Mtom
注解
返回的对象为 wsDualHttpBinding
绑定指定详细的消息级安全性属性。