Delen via


DeploymentServiceHost.ReportException Method

Report an exception through Dr. Watson.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Overrides Sub ReportException ( _
    watsonReportingName As String, _
    eventCategory As String, _
    exception As Exception, _
    additionalInfo As String() _
)
public override void ReportException(
    string watsonReportingName,
    string eventCategory,
    Exception exception,
    string[] additionalInfo
)
public:
virtual void ReportException(
    String^ watsonReportingName, 
    String^ eventCategory, 
    Exception^ exception, 
    array<String^>^ additionalInfo
) override
abstract ReportException : 
        watsonReportingName:string * 
        eventCategory:string * 
        exception:Exception * 
        additionalInfo:string[] -> unit  
override ReportException : 
        watsonReportingName:string * 
        eventCategory:string * 
        exception:Exception * 
        additionalInfo:string[] -> unit
public override function ReportException(
    watsonReportingName : String, 
    eventCategory : String, 
    exception : Exception, 
    additionalInfo : String[]
)

Parameters

  • eventCategory
    Type: System.String

    One of the event categories from the WatsonReport class

  • additionalInfo
    Type: array<System.String[]

    More information, if any, to include with the report.

Remarks

Generally, unhandled or unanticipated exceptions are reported.

.NET Framework Security

See Also

Reference

DeploymentServiceHost Class

Microsoft.TeamFoundation.Framework.Server Namespace