WebHttpSecurity.Transport 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得包含此綁定傳輸層安全設定的物件。
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 ClientCredentialType 的 None、a ProxyCredentialType 的 None、 和 Realm = “”。
備註
利用HttpTransportSecurity此屬性回傳的物件來設定傳輸安全參數。WebHttpBinding
若Transport方法指定 WebHttpBinding(WebHttpSecurityMode) or TransportCredentialOnly 值,則該屬性所提供的Transport設定對服務端點生效。
若 TransportCredentialOnly 該值由 WebHttpBinding(WebHttpSecurityMode) 方法指定,則該屬性所提供的 Transport 設定對服務端點生效。 的 WebHttpSecurityMode 值只能在將其視為明確參數的 WebHttpBinding 建構子中設定,且在建立綁定實例後無法再次設定。