Stop a service.
Namespace: Bespoke.CommonAssembly: Bespoke.Common (in Bespoke.Common.dll) Version: 5.0.0.0 (5.0.0.0)
Public Shared Function StopService ( _
serviceName As String _
) As Boolean
Public Shared Function StopService ( _
serviceName As String _
) As Boolean
public static bool StopService(
string serviceName
)
public static bool StopService(
string serviceName
)
public:
static bool StopService(
String^ serviceName
)
public:
static bool StopService(
String^ serviceName
)
Parameters
- serviceName
- Type: System String
The name of the service to stop.
Return Value
true if the service was successfully stopped; otherwise, false.