ApplicationServicesHostFactory::CreateServiceHost Method (Type^, array<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: 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
Available since 3.5
Available since 3.5
Show: