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 Uri BaseAddress { 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.6, 4.5

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft