共用方式為


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 位址, 用戶端應該使用安全性確保本身只連接其信任的服務。

適用於