Export (0) Print
Expand All

HttpClient.BaseAddress Property

.NET Framework 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)

member BaseAddress : Uri with get, set

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.5.3

.NET for Windows Store apps

Supported in: Windows 8

Supported in: Windows Phone 8.1

Windows Phone 8.1

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft