ServiceHostFactory::CreateServiceHost Method (String^, array<Uri^>^)
.NET Framework (current version)
Creates a ServiceHost with specific base addresses and initializes it with specified data.
Assembly: System.ServiceModel.Activation (in System.ServiceModel.Activation.dll)
public: virtual ServiceHostBase^ CreateServiceHost( String^ constructorString, array<Uri^>^ baseAddresses ) override
Parameters
- constructorString
-
Type:
System::String^
The initialization data passed to the ServiceHostBase instance being constructed by the factory.
- baseAddresses
-
Type:
array<System::Uri^>^
The Array of type Uri that contains the base addresses for the service hosted.
| Exception | Condition |
|---|---|
| ArgumentNullException | baseAddress is null. |
| InvalidOperationException | There is no hosting context provided or constructorString is null or empty. |
.NET Framework
Available since 3.0
Available since 3.0
Show: