SPWindowsServiceInstance.Start Method
Starts the Windows service on the local computer.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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