Mono Class Library: System.Net.WebRequest Overview | Members

System.Net.WebRequest.Proxy Property

Gets or sets the network proxy to use to access resources.

public virtual IWebProxy Proxy { set; get; }

Value

A System.Net.IWebProxy to use to access resources.

Exceptions

TypeReason
NotSupportedExceptionThis property is not implemented in the derived class.

Remarks

The WebRequest.Proxy property identifies the network proxy that the request uses to access resources. The request is made through the proxy server rather than directly to the server hosting the resource.

Operation

If the WebRequest.Proxy property of the current instance has not been set, the value of this property is required to be null .

If the property is being set to null, it is required to throw a ArgumentNullException exception.

This property throws NotSupportedException.

Note to Inheritors
This property must be overridden by classes that inherit from System.Net.WebRequest to provide this functionality.

Usage
Use this method to obtain a System.Net.IWebProxy instance that represents the proxy server used by the current instance.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0