WebServiceHost Constructor (Type^, array<Uri^>^)

 

Initializes a new instance of the WebServiceHost class with the specified service type and base address.

Namespace:   System.ServiceModel.Web
Assembly:  System.ServiceModel.Web (in System.ServiceModel.Web.dll)

public:
WebServiceHost(
	Type^ serviceType,
	... array<Uri^>^ baseAddresses
)

Parameters

serviceType
Type: System::Type^

The service type.

baseAddresses
Type: array<System::Uri^>^

The base address of the service.

The baseAddresses parameter can consist of one or more base addresses.

The following example shows how to call this constructor.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show: