SPUsageService.IsLoggingEnabled method
Indicates whether logging is enabled for the specified usage application or not.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function IsLoggingEnabled ( _
usageApplication As SPUsageApplication _
) As Boolean
'Usage
Dim usageApplication As SPUsageApplication
Dim returnValue As Boolean
returnValue = SPUsageService.IsLoggingEnabled(usageApplication)
public static bool IsLoggingEnabled(
SPUsageApplication usageApplication
)
Parameters
usageApplication
Type: Microsoft.SharePoint.Administration.SPUsageApplicationThe specified usage application.
Return value
Type: System.Boolean
A Boolean value = true if logging is enabled.