ServiceController.Close Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Disconnects this ServiceController instance from the service and frees all the resources that the instance allocated.

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

public void Close()

Close releases all the handles associated with the ServiceController instance.

.NET Framework
Available since 1.1
Return to top
Show: