共用方式為


SPWindowsServiceInstance.ProvisionAutoStart property

取得 Boolean 值,指出 Windows 服務是否已設定為佈建期間啟用時自動啟動。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Protected Overridable ReadOnly Property ProvisionAutoStart As Boolean
    Get
'用途
Dim value As Boolean

value = Me.ProvisionAutoStart
protected virtual bool ProvisionAutoStart { get; }

Property value

Type: System.Boolean
true Windows 服務設為自動 ; 啟動否則,請false。

請參閱

參照

SPWindowsServiceInstance class

SPWindowsServiceInstance members

Microsoft.SharePoint.Administration namespace