WSDualHttpBinding.Security 属性

定义

获取一个对象,该对象指定与此绑定一起使用的安全设置。

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

属性值

WSDualHttpSecurity,指定与此绑定一起使用的安全设置。 WSDualHttpSecurityMode 的默认值为 Message

示例

下面的示例演示如何获取绑定的安全类型。

WSDualHttpSecurity security = binding.Security;
Dim security As WSDualHttpSecurity = binding.Security

注解

双向绑定向服务公开客户端的 IP 地址。 客户端应使用安全来确保仅连接到自己信任的服务。

适用于