ApplicationServicesHostFactory.CreateServiceHost Method (Type, Uri())
.NET Framework (current version)
Creates an instance of the service class that has the specified base address or addresses.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Protected Overrides Function CreateServiceHost ( serviceType As Type, baseAddresses As Uri() ) As ServiceHost
Parameters
- serviceType
-
Type:
System.Type
The type of service host to create.
- baseAddresses
-
Type:
System.Uri()
An array of base addresses for the service.
Return Value
Type: System.ServiceModel.ServiceHostA 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
Available since 3.5
Available since 3.5
Show: