ServiceManager StopService Method (String, Int32)Bespoke Osc Library
Stop a service.

Namespace: Bespoke.Common
Assembly: Bespoke.Common (in Bespoke.Common.dll) Version: 5.0.0.0 (5.0.0.0)
Syntax

Public Shared Function StopService ( _
	serviceName As String, _
	timeoutMilliseconds As Integer _
) As Boolean

Parameters

serviceName
Type: OnlineSystem String
The name of the service to stop.
timeoutMilliseconds
Type: OnlineSystem Int32
The amount of time to wait for the service to stop, before giving up.

Return Value

true if the service was successfully stopped; otherwise, false.
See Also