你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

HttpRelayTransportBindingElement.KeepAliveEnabled 属性

定义

获取或设置一个值,该值指示是否与服务终结点建立持久性连接。

public bool KeepAliveEnabled { get; set; }
member this.KeepAliveEnabled : bool with get, set
Public Property KeepAliveEnabled As Boolean

属性值

如果对服务终结点的请求应包含值为 Keep-alive 的“Connection”HTTP 标头,则为 true;否则为 false。 默认值为 true。

适用于