語言

ServiceMetadataBehavior.HttpGetBinding 屬性

定義

當傳輸為 HTTP 時,取得或設定一個綁定,用於設定元資料檢索。

public:
 property System::ServiceModel::Channels::Binding ^ HttpGetBinding { System::ServiceModel::Channels::Binding ^ get(); void set(System::ServiceModel::Channels::Binding ^ value); };
public System.ServiceModel.Channels.Binding HttpGetBinding { get; set; }
member this.HttpGetBinding : System.ServiceModel.Channels.Binding with get, set
Public Property HttpGetBinding As Binding

屬性值

Binding A可用於透過HTTP協定擷取元資料。

備註

在先前的 WCF 版本中,元資料檢索是透過 HTTP GET 透過網頁瀏覽器存取服務說明頁面完成的。 只有 the HttpTransportBindingElement 得到了支持。 在使用 HTTPS GET 進行元資料檢索時,僅支援 。HttpsTransportBindingElement HttpGetBinding 與 HttpsGetBinding 屬性允許使用 HTTP GET(或 HTTPS GET)進行元資料檢索的綁定,並允許用於存取服務網頁的綁定可設定,無論是程式化或設定檔。

如需更多關於檢索幫助頁面的資訊,請使用 HttpHelpPageBinding 與 HttpsHelpPageBinding 屬性。

適用於