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

System.Net.WebClient.BaseAddress Property

Gets or sets the base URI for requests made by a System.Net.WebClient .

public string BaseAddress { set; get; }

Value

A string containing the base URI for requests made by a System.Net.WebClient or, string.Empty, if no value was set or null was specified for a set operation.

Exceptions

TypeReason
ArgumentExceptionThe value specified for a set operation is not null or string.Empty, and is not a URI in a format recognized by the Uri class.

Remarks

Note: The WebClient.BaseAddress property contains a base URI that is combined with the relative address specified when calling an upload or download method.

Requirements

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