This documentation is archived and is not being maintained.

ApplicationServicesHostFactory::CreateServiceHost Method (Type, array<Uri>)

Creates an instance of the service class that has the specified base address or addresses.

Namespace:  System.Web.ApplicationServices
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

protected:
virtual ServiceHost^ CreateServiceHost(
	Type^ serviceType, 
	array<Uri^>^ baseAddresses
) override

Parameters

serviceType
Type: System::Type
The type of service host to create.
baseAddresses
Type: array<System::Uri>
An array of base addresses for the service.

Return Value

Type: System.ServiceModel::ServiceHost
A ServiceHost instance for the type of service that has the specified base address or addresses.

Usually this method is called automatically by Windows Communication Foundation (WCF) as part of service activation, and you do not have to call the method manually.

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: