Condividi tramite


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

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 true.

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