WebServiceHostFactory::CreateServiceHost Method (Type^, array<Uri^>^)
.NET Framework (current version)
Creates an instance of the specified WebServiceHost derived class with the specified base addresses.
Assembly: System.ServiceModel.Web (in System.ServiceModel.Web.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.
Override this method to create the required service host type and perform any needed processing.
The following example shows a basic implementation of this method.
.NET Framework
Available since 3.5
Available since 3.5
Show: