SPWindowsServiceInstance.IsDisabled method
會傳回 Boolean 值,指出是否停用本機電腦上的 Windows 服務。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Protected Friend Shared Function IsDisabled ( _
serviceName As String _
) As Boolean
'用途
Dim serviceName As String
Dim returnValue As Boolean
returnValue = SPWindowsServiceInstance.IsDisabled(serviceName)
protected internal static bool IsDisabled(
string serviceName
)
參數
serviceName
Type: System.String包含服務的 Windows 名稱的字串。
傳回值
Type: System.Boolean
true Windows 服務已停用 ; 如果否則,請false。
請參閱
參照
SPWindowsServiceInstance class