Editar

Partilhar via


ServiceHostFactoryBase.CreateServiceHost(String, Uri[]) Method

Definition

When overridden in a derived class, creates a ServiceHostBase with a specific base address using custom initiation data.

public:
 abstract System::ServiceModel::ServiceHostBase ^ CreateServiceHost(System::String ^ constructorString, cli::array <Uri ^> ^ baseAddresses);
public abstract System.ServiceModel.ServiceHostBase CreateServiceHost (string constructorString, Uri[] baseAddresses);
abstract member CreateServiceHost : string * Uri[] -> System.ServiceModel.ServiceHostBase
Public MustOverride Function CreateServiceHost (constructorString As String, baseAddresses As Uri()) As ServiceHostBase

Parameters

constructorString
String

The initialization data that is passed to the ServiceHostBase instance being constructed by the factory.

baseAddresses
Uri[]

An Array of type Uri that contains the base addresses of the host.

Returns

The ServiceHostBase object with the specified base addresses and initialized with the custom initiation data.

Applies to