WinHttpHandler.TcpKeepAliveEnabled 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,表示是否啟用了 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。