WebServiceEndpoint.Security 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得要搭配此繫結使用的安全性設定。
public:
property System::ServiceModel::WebHttpSecurity ^ Security { System::ServiceModel::WebHttpSecurity ^ get(); };
C#
public System.ServiceModel.WebHttpSecurity Security { get; }
member this.Security : System.ServiceModel.WebHttpSecurity
Public ReadOnly Property Security As 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 |