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

属性值

Boolean

如果发布 WSDL,则为 true;否则为 false。 默认值为 false

注解

如果 HttpsGetUrl 的值是相对值,则发布元数据的地址为基址和服务地址加上 ?wsdl querystring。

如果 HttpsGetUrl 的值是绝对值,则发布元数据的地址为 HttpsGetUrl 值的值加上 ?wsdl querystring。

例如,如果服务地址为 https://localhost:8080/CalculatorServiceHttpsGetUrl 为空字符串,则 HTTPS/GET 元数据地址为 https://localhost:8080/CalculatorService?wsdl

适用于