Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Disables the service on the local computer.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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