共用方式為


WebHttpBinding.Security 屬性

定義

取得要搭配此繫結使用的安全性設定。

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

屬性值

WebHttpSecurity

搭配此繫結使用的 WebHttpSecurity。 預設值是 None

備註

若要使用非預設類型的安全性,請使用 WebHttpBinding(WebHttpSecurityMode) 建構函式。

注意

若您將此屬性設定為 TransportCredentialOnly,而且使用的是 HTTP,請注意憑證會以純文字方式透過網路傳送。

適用於