Share via


SPDiagnosticsService.Provision method

Makes the necessary changes to the local server to use the SPDiagnosticsService object.

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

Syntax

'Declaration
Public Overrides Sub Provision
'Usage
Dim instance As SPDiagnosticsService

instance.Provision()
public override void Provision()

Remarks

This method creates a directory for log files on the local server if one does not exist, and it sets appropriate security permissions on the directory. It also stores the current configuration of the service in the local registry.

See also

Reference

SPDiagnosticsService class

SPDiagnosticsService members

Microsoft.SharePoint.Administration namespace

Unprovision()