Gets or sets the value of the Keep-Alive header.
[Visual Basic] Public Property KeepAlive As Boolean [C#] public bool KeepAlive {get; set;} [C++] public: __property bool get_KeepAlive(); public: __property void set_KeepAlive(bool); [JScript] public function get KeepAlive() : Boolean; public function set KeepAlive(Boolean);
The application uses KeepAlive to indicate its preference for persistant connections. When System.Net.KeepAlive is true, a persistant connection will be made to the servers that support persistant connections.
HttpWebRequest Class | HttpWebRequest Members | System.Net Namespace