SPWindowsServiceInstance.Disable Method

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.String

    A string that contains the Windows name of the service to disable.

See Also

Reference

SPWindowsServiceInstance Class

SPWindowsServiceInstance Members

Microsoft.SharePoint.Administration Namespace