AddBaseAddress Method

ServiceHostBase.AddBaseAddress Method

Adds a base address to the service host.

Namespace: System.ServiceModel
Assembly: System.ServiceModel (in system.servicemodel.dll)

protected void AddBaseAddress (
	Uri baseAddress
)
protected void AddBaseAddress (
	Uri baseAddress
)
protected function AddBaseAddress (
	baseAddress : Uri
)
Not applicable.

Parameters

baseAddress

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

Exception typeCondition

InvalidOperationException

The baseAddress cannot be called.

This property allows users extending ServiceHostBase to provide the base address after the host has been constructed. AddBaseAddress can be used this to add base addresses to an existing host, but this will throw if the description has already been initialized.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2016 Microsoft