WebServiceEndpoint.Security 屬性

定義

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

C#
public System.ServiceModel.WebHttpSecurity Security { get; }

屬性值

WebHttpSecurity

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

備註

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

備註

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

適用於

產品 版本
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8