Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpClient.BaseAddress Property

.NET Framework (current version)
 

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

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft