Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

WebClient.BaseAddress Property

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

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)
public string BaseAddress { get; set; }

Property Value

Type: System.String
The base URI for requests made by a WebClient. If no base address has been specified, the BaseAddress property is initialized to the application origin (the absolute URI of the Silverlight XAP).
..
ExceptionCondition
ArgumentException

BaseAddress is set to an invalid URI. The inner exception may contain information that will help you locate the error.

The BaseAddress property contains a base URI that is combined with a relative address. When you call a method that uploads or downloads data, the WebClient object combines this base URI with the relative address you specify in the method call. If you specify an absolute URI, WebClient does not use the BaseAddress property value. To remove a previously set value, set BaseAddress to null or an empty string ("").

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.