Partilhar 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)
Available in Sandboxed Solutions: No

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()