HttpClient.BaseAddress HttpClient.BaseAddress HttpClient.BaseAddress Property

Definition

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

public:
 property Uri ^ BaseAddress { Uri ^ get(); void set(Uri ^ value); };
public Uri BaseAddress { get; set; }
Public Property BaseAddress As Uri
Property Value

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

Remarks

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

Applies to