Edit

Bagikan melalui


ServiceHostBase.AddBaseAddress(Uri) Method

Definition

Adds a base address to the service host.

protected:
 void AddBaseAddress(Uri ^ baseAddress);
protected void AddBaseAddress (Uri baseAddress);
member this.AddBaseAddress : Uri -> unit
Protected Sub AddBaseAddress (baseAddress As Uri)

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