SPWindowsServiceInstance.Start method

Starts the Windows service on the local computer.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub Start
'Usage
Dim instance As SPWindowsServiceInstance

instance.Start()
public void Start()

Exceptions

Exception Condition
InvalidOperationException

The password is incorrect, the service could not be started, or the admin service is not running on the server.

Remarks

The Windows service must be provisioned on the server before it can be started. Call Provision() before starting the Windows service through this method.

See also

Reference

SPWindowsServiceInstance class

SPWindowsServiceInstance members

Microsoft.SharePoint.Administration namespace