WebServiceHostFactory::CreateServiceHost Method (Type^, array<Uri^>^)

 

Creates an instance of the specified WebServiceHost derived class with the specified base addresses.

Namespace:   System.ServiceModel.Activation
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.

Return Value

Type: System.ServiceModel::ServiceHost^

An instance of a ServiceHost derived class.

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
Return to top
Show: