SPDiagnosticsService.ScriptErrorReportingEnabled property

Gets or sets a Boolean value to indicate whether ECMAScript (JScript, JavaScript) error reporting is enabled within the end user's browser session.

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

Syntax

'Declaration
Public Property ScriptErrorReportingEnabled As Boolean
    Get
    Set
'Usage
Dim instance As SPDiagnosticsService
Dim value As Boolean

value = instance.ScriptErrorReportingEnabled

instance.ScriptErrorReportingEnabled = value
public bool ScriptErrorReportingEnabled { get; set; }

Property value

Type: System.Boolean
true to enable ECMAScript error reporting; otherwise, false. The default value is false.

Remarks

The user interface for this feature can be found at _admin/Privacy.aspx

See also

Reference

SPDiagnosticsService class

SPDiagnosticsService members

Microsoft.SharePoint.Administration namespace