Breyta

Deila með


WSDualHttpBinding.Security Property

Definition

Gets an object that specifies the security settings used with this binding.

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

Property Value

The WSDualHttpSecurity that specifies security settings used with the binding. The default value of WSDualHttpSecurityMode is Message.

Examples

The following example shows how to get the type of security of the binding.

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

Remarks

A dual binding exposes the IP address of the client to the service. The client should use security to ensure that it only connects to services it trusts.

Applies to