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 或更高版本上受支持。 如果启用,则会转发其值TcpKeepAliveIntervalTcpKeepAliveTime以设置WINHTTP_OPTION_TCP_KEEPALIVE,为后盾 TCP 套接字启用和配置 TCP 保持活动状态。

适用于