SPWindowsServiceInstance.Disable method
Disables the service on the local computer.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub Disable ( _
serviceName As String _
)
'Usage
Dim serviceName As StringSPWindowsServiceInstance.Disable(serviceName)
public static void Disable(
string serviceName
)
Parameters
serviceName
Type: System.StringA string that contains the Windows name of the service to disable.
See also
Reference
SPWindowsServiceInstance class