SPWindowsServiceInstance.Disable method
停用本機電腦上的服務。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Sub Disable ( _
serviceName As String _
)
'用途
Dim serviceName As StringSPWindowsServiceInstance.Disable(serviceName)
public static void Disable(
string serviceName
)
參數
serviceName
Type: System.String包含要停用之服務的 Windows 名稱的字串。
請參閱
參照
SPWindowsServiceInstance class