ServiceHealthBehaviorBase.HttpsGetEnabled 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指定是否要發佈服務元資料以便使用 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
屬性值
一個值,指定是否要發佈服務中繼資料以便使用 HTTPS/Get 請求來檢索。 預設值為 true。
備註
若 httpsGetUrl 未指定屬性,則中繼資料發佈的位址為服務位址加上「?health」。 例如,若服務位址為 https://localhost:8080/CalculatorService,則 HTTP/Get 元資料位址為 https://localhost:8080/CalculatorService?health。
如果這個屬性是 false,或服務的位址不是基於 HTTP 或 HTTPS,則會忽略「?health」。