ServiceMetadataBehavior.HttpsGetEnabled 屬性

定義

取得或設定值,這個值會指出是否發行服務中繼資料以使用 HTTPS/GET 要求進行擷取。

public:
 property bool HttpsGetEnabled { bool get(); void set(bool value); };
public bool HttpsGetEnabled { get; set; }
member this.HttpsGetEnabled : bool with get, set
Public Property HttpsGetEnabled As Boolean

屬性值

如果發行 WSDL 則為 true,否則為 false。 預設為 false

備註

如果 HttpsGetUrl 的值為相對值,則發行中繼資料的位址為基底位址和服務位址,外加一個 ?wsdl 查詢字串。

如果 HttpsGetUrl 的值為絕對值,則發行中繼資料的位址為 HttpsGetUrl 的值,外加一個 ?wsdl 查詢字串。

例如,如果服務位址為 https://localhost:8080/CalculatorServiceHttpsGetUrl 為空字串,則 HTTPS/GET 中繼資料位址為 https://localhost:8080/CalculatorService?wsdl

適用於