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()
[C#]
public void Close();
[C++]
public: void Close();
[JScript]
public function Close();

Remarks

Close releases all the handles associated with the ServiceController instance.

Requirements

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

Show:
© 2014 Microsoft