WinHttpHandler.TcpKeepAliveEnabled Property

Definition

Gets or sets a value indicating whether TCP keep-alive is enabled.

public bool TcpKeepAliveEnabled { get; set; }

Property Value

Remarks

Only supported on Windows 10 version 2004 or newer. If enabled, the values of TcpKeepAliveInterval and TcpKeepAliveTime will be forwarded to set WINHTTP_OPTION_TCP_KEEPALIVE, enabling and configuring TCP keep-alive for the backing TCP socket.

Applies to

Produkt Versjoner
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)