HttpWebRequest.KeepAlive Property

Gets or sets whether to use a persistent connection, if available.

Namespace: System.Net
Assembly: System (in system.dll)

Syntax

public bool KeepAlive { get; set; }

Property Value

langref if the request to the Internet resource should contain a Connection HTTP header with the value Keep-alive; otherwise, false. The default is true.

Version Information

Available in the .NET Micro Framework versions 4.0, 4.1, and 4.2.

See Also

Reference

HttpWebRequest Class
HttpWebRequest Members
System.Net Namespace