共用方式為


WebHttpSecurity.Transport 屬性

定義

取得包含此綁定傳輸層安全設定的物件。

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

屬性值

這個 HttpTransportSecurity 綁定。

預設值為 a ClientCredentialTypeNone、a ProxyCredentialTypeNone、 和 Realm = “”。

備註

利用HttpTransportSecurity此屬性回傳的物件來設定傳輸安全參數。WebHttpBinding

Transport方法指定 WebHttpBinding(WebHttpSecurityMode) or TransportCredentialOnly 值,則該屬性所提供的Transport設定對服務端點生效。

TransportCredentialOnly 該值由 WebHttpBinding(WebHttpSecurityMode) 方法指定,則該屬性所提供的 Transport 設定對服務端點生效。 的 WebHttpSecurityMode 值只能在將其視為明確參數的 WebHttpBinding 建構子中設定,且在建立綁定實例後無法再次設定。

適用於