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

預設值集合為 的 、的 以及 = ""。

備註

請使用這個屬性傳回的 物件來設定 的傳輸安全性參數。

如果 TransportTransportCredentialOnly 值由 WebHttpBinding(WebHttpSecurityMode) 方法指定,那麼 Transport 屬性提供的設定,對服務端點而言變為有效。

如果 TransportCredentialOnly 值由 WebHttpBinding(WebHttpSecurityMode) 方法指定,那麼 Transport 屬性提供的設定,對服務端點而言變為有效。 WebHttpSecurityMode 的值只能在 WebHttpBinding 建構函式中設定,這個建構函式會將它當做明確參數,而且其值在建立繫結執行個體之後無法再次設定。

適用於