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

 

Initializes a new instance of the WebServiceHost class with the specified singleton server instance and base address.

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

public:
WebServiceHost(
	Object^ singletonInstance,
	... array<Uri^>^ baseAddresses
)

Parameters

singletonInstance
Type: System::Object^

A service instance to be used as the singleton instance.

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: