次の方法で共有


SPWindowsServiceInstance.Provision method (Boolean)

Provisions the Windows service on the local computer and optionally starts the service.

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

Syntax

'Declaration
Public Sub Provision ( _
    start As Boolean _
)
'Usage
Dim instance As SPWindowsServiceInstance
Dim start As Boolean

instance.Provision(start)
public void Provision(
    bool start
)

Parameters

  • start
    Type: System.Boolean

    true specifies that the service should be started; otherwise, false.

See also

Reference

SPWindowsServiceInstance class

SPWindowsServiceInstance members

Provision overload

Microsoft.SharePoint.Administration namespace