語言

WinHttpHandler.TcpKeepAliveEnabled 屬性

定義

取得或設定一個值,表示是否啟用了 TCP keep-alive。

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 keep-alive 功能,支援 TCP socket。

適用於