Disconnects this ServiceController instance from the service and frees all the resources that the instance allocated.
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)
- 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.