Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ServiceHost::SingletonInstance Property

 

Gets the singleton instance of the hosted service.

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

public:
property Object^ SingletonInstance {
	Object^ get();
}

Property Value

Type: System::Object^

The hosted service object.

Use the ServiceHost(Object^, array<Uri^>^) constructor to initialize a singleton instance of the service to be hosted when you want to control the instance of the service that is used.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft