共用方式為


SPFarm.ErrorReportingEnabled Property

NOTE: This API is now obsolete.

Gets or sets a Boolean value that specifies whether to enable an application that performs crash data collection and error reporting in the server farm.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Use SPDiagnosticsService.ErrorReportingEnabled")> _
Public Property ErrorReportingEnabled As Boolean
    Get
    Set
'Usage
Dim instance As SPFarm
Dim value As Boolean

value = instance.ErrorReportingEnabled

instance.ErrorReportingEnabled = value
[ObsoleteAttribute("Use SPDiagnosticsService.ErrorReportingEnabled")]
public bool ErrorReportingEnabled { get; set; }

Property Value

Type: System.Boolean
true to enable crash data collection and error reporting; otherwise, false. The default value is true.

Remarks

Crash data collection and error reporting provides Microsoft with feedback about problems that occur within a deployment.

See Also

Reference

SPFarm Class

SPFarm Members

Microsoft.SharePoint.Administration Namespace