Export (0) Print
Expand All

ServiceController.Close Method

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

[Visual Basic]
Public Sub Close()
public void Close();
public: void Close();
public function Close();


Close releases all the handles associated with the ServiceController instance.


Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ServiceController Class | ServiceController Members | System.ServiceProcess Namespace

© 2014 Microsoft