Click or drag to resize

ExtensionsTryStartService Method (ServiceController)

Tries to start 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 TryStartService(
	this ServiceController serviceController
)

Parameters

serviceController
Type: System.ServiceProcessServiceController
The service controller to use.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ServiceController. 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