ServiceMetadataPublishingElement.HttpsGetEnabled 属性

定义

获取或设置一个值,该值指示是否发布服务元数据以便使用 HTTPS/Get 请求进行检索。Gets or sets a value that indicates whether to publish service metadata for retrieval using an HTTPS/Get request.

public:
 property bool HttpsGetEnabled { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("httpsGetEnabled", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public bool HttpsGetEnabled { get; set; }
[<System.Configuration.ConfigurationProperty("httpsGetEnabled", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.HttpsGetEnabled : bool with get, set
Public Property HttpsGetEnabled As Boolean

属性值

Boolean

如果发布服务元数据以使用 HTTP/Get 请求进行检索,则为 true;否则为 falsetrue if the service metadata is published for retrieval using an HTTP/Get request; otherwise, false. 默认为 falseThe default is false.

属性

注解

如果未指定 HttpsGetUrl 属性,则发布元数据的地址为服务地址加上“?wsdl”。If the HttpsGetUrl property is not specified, the address at which the metadata is published is the service address plus a "?wsdl". 例如,如果服务地址为,则 https://localhost:8080/CalculatorService HTTP/Get 元数据地址为 https://localhost:8080/CalculatorService?wsdlFor example, if the service address is https://localhost:8080/CalculatorService, the HTTP/Get metadata address is https://localhost:8080/CalculatorService?wsdl.

如果此属性为 false ,或服务的地址不基于 HTTP 或 HTTPS,则忽略 "? wsdl"。If this property is false, or the address of the service is not based on HTTP or HTTPS, "?wsdl" is ignored.

适用于