Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpClient::BaseAddress Property

.NET Framework 4.6 and 4.5

Gets or sets the base address of Uniform Resource Identifier (URI) of the Internet resource used when sending requests.

Namespace:  System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

public:
property Uri^ BaseAddress {
	Uri^ get ();
	void set (Uri^ value);
}

Property Value

Type: System::Uri
Returns Uri.
The base address of Uniform Resource Identifier (URI) of the Internet resource used when sending requests.

When sending a HttpRequestMessage with a relative Uri, the message Uri will be added to the BaseAddress property to create an absolute Uri.

.NET Framework

Supported in: 4.6, 4.5

.NET for Windows Phone apps

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft