Method TerminateService TerminateService() Terminates a connected service. Intended for testing and debugging. Declaration bool TerminateService() Returns Type Description System.Boolean False in case of error.