Gets and sets the value of the Connection header.
[Visual Basic] Public Property Connection As String [C#] public string Connection {get; set;} [C++] public: __property String* get_Connection(); public: __property void set_Connection(String*); [JScript] public function get Connection() : String; public function set Connection(String);
Exception Type | Condition |
---|---|
ArgumentException | The value of Connection is set to "keep-alive" or "close". |
HttpWebRequest Class | HttpWebRequest Members | System.Net Namespace