WinHttpHandler.TcpKeepAliveEnabled 属性

定义

获取或设置一个值,该值指示是否启用 TCP 保持连接。

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

属性值

注解

仅在Windows 10版本 2004 或更高版本上受支持。 如果启用,将转发 和 TcpKeepAliveTime 的值TcpKeepAliveInterval以设置WINHTTP_OPTION_TCP_KEEPALIVE,为支持 TCP 套接字启用和配置 TCP 保持连接。

适用于