WSDualHttpBinding.Security Egenskap

Definition

Hämtar ett objekt som anger de säkerhetsinställningar som används med den här bindningen.

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

Egenskapsvärde

Som WSDualHttpSecurity anger säkerhetsinställningar som används med bindningen. Standardvärdet för WSDualHttpSecurityMode är Message.

Exempel

I följande exempel visas hur du hämtar typen av säkerhet för bindningen.

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

Kommentarer

En dubbel bindning exponerar IP-adressen för klienten för tjänsten. Klienten bör använda säkerhet för att säkerställa att den endast ansluter till tjänster som den litar på.

Gäller för