Share via


SPDiagnosticsProvider.EnableProvider<TProvider> method

Enable diagnostic provider according to its type

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

Syntax

'Declaration
Public Shared Sub EnableProvider(Of TProvider As SPDiagnosticsProvider) ( _
    farm As SPFarm _
)
'Usage
Dim farm As SPFarmSPDiagnosticsProvider.EnableProvider(farm)
public static void EnableProvider<TProvider>(
    SPFarm farm
)
where TProvider : SPDiagnosticsProvider

Type parameters

  • TProvider
    The type of the provider

Parameters

See also

Reference

SPDiagnosticsProvider class

SPDiagnosticsProvider members

Microsoft.SharePoint.Diagnostics namespace