Click or drag to resize

ExtensionsTryStopService Method (ServiceInstaller)

Tries to stop the service

Namespace:  Cauldron
Assembly:  Cauldron.Win32.WindowsService (in Cauldron.Win32.WindowsService.dll) Version: 3.1.0.22 (3.1.0.22)
Syntax
C#
public static void TryStopService(
	this ServiceInstaller serviceInstaller
)

Parameters

serviceInstaller
Type: System.ServiceProcessServiceInstaller
The service installer used to install the service.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ServiceInstaller. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also