共用方式為


SPService.Required property

取得 Boolean 值,指出是否必須在伺服器陣列中的至少一部電腦上執行之服務的執行個體。

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

Syntax

'宣告
Public Overridable ReadOnly Property Required As Boolean
    Get
'用途
Dim instance As SPService
Dim value As Boolean

value = instance.Required
public virtual bool Required { get; }

Property value

Type: System.Boolean
true如果至少一部電腦,必須執行的服務執行個體否則,請false。

請參閱

參照

SPService class

SPService members

Microsoft.SharePoint.Administration namespace