WSHttpSecurity.Message 属性

定义

获取此绑定的消息级安全性设置。

public:
 property System::ServiceModel::NonDualMessageSecurityOverHttp ^ Message { System::ServiceModel::NonDualMessageSecurityOverHttp ^ get(); void set(System::ServiceModel::NonDualMessageSecurityOverHttp ^ value); };
public:
 property System::ServiceModel::NonDualMessageSecurityOverHttp ^ Message { System::ServiceModel::NonDualMessageSecurityOverHttp ^ get(); };
public System.ServiceModel.NonDualMessageSecurityOverHttp Message { get; set; }
public System.ServiceModel.NonDualMessageSecurityOverHttp Message { get; }
member this.Message : System.ServiceModel.NonDualMessageSecurityOverHttp with get, set
member this.Message : System.ServiceModel.NonDualMessageSecurityOverHttp
Public Property Message As NonDualMessageSecurityOverHttp
Public ReadOnly Property Message As NonDualMessageSecurityOverHttp

属性值

NonDualMessageSecurityOverHttp

此绑定的消息级安全设置。 默认值包括:EstablishSecurityContext 的默认值设置为 trueClientCredentialType 的默认值为 WindowsAlgorithmSuite 的默认值为 Basic256 以及 NegotiateServiceCredential 的默认值为 true

示例

下面的代码演示此属性的用法。

WSHttpBinding myBinding = new WSHttpBinding();
myBinding.Security.Mode = SecurityMode.Message;
myBinding.Security.Message.ClientCredentialType =
    MessageCredentialType.Windows;

适用于