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();
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:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code