Edit

Share via


ServiceHostBase.AddBaseAddress(Uri) Method

Definition

Adds a base address to the service host.

protected void AddBaseAddress(Uri baseAddress);

Parameters

baseAddress
Uri

A Uri that contains the base address for services hosted on the current host.

Exceptions

The baseAddress cannot be called.

Remarks

This property allows users extending ServiceHostBase to provide the base address after the host is constructed. AddBaseAddress(Uri) can be used to add base addresses to an existing host, but throws an exception if the description is already initialized.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1