WSDualHttpSecurity.Message 属性

定义

获取 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

一个 MessageSecurityOverHttp 值。 默认值包括:ClientCredentialTypeWindowsAlgorithmSuiteBasic256,以及 NegotiateServiceCredentialtrue

示例

下面的代码演示如何通过访问此属性设置 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 绑定指定详细的消息级安全性属性。

适用于