HttpWebRequest.Proxy Property
Gets or sets the proxy for the request.
Namespace: System.Net
Assembly: System (in system.dll)
Syntax
public override IWebProxy Proxy { get; set; }
Property Value
The IWebProxy object to use to proxy the request. null indicates that no proxy will be used.
Exceptions
Exception type | Condition |
---|---|
InvalidOperationException | The proxy cannot be changed, because the request was already submitted. |
ArgumentNullException | A null value was specified. |
Version Information
Available in the .NET Micro Framework versions 4.0 and 4.1.
See Also
Reference
HttpWebRequest Class
HttpWebRequest Members
System.Net Namespace