WSDualHttpBinding.Security Egenskap
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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å.