共用方式為


SPServiceApplication.Provision method

初始化的服務應用程式的資源,並將服務應用程式狀態設為Online

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

Syntax

'宣告
Public Overrides Sub Provision
'用途
Dim instance As SPServiceApplication

instance.Provision()
public override void Provision()

Exceptions

Exception Condition
InvalidOperationException

此服務應用程式尚未初始化。初始化的服務應用程式,然後再呼叫此方法。

請參閱

參照

SPServiceApplication class

SPServiceApplication members

Microsoft.SharePoint.Administration namespace