Compartir a través de


DiagnosticsExtensionMethods.GetDiagnosticsReporter Method

Definition

Creates a new diagnostic reporter or gets the previously registered reporter to utilize error list functionality.

public static Microsoft.VisualStudio.Extensibility.Documents.DiagnosticsReporter GetDiagnosticsReporter (this Microsoft.VisualStudio.Extensibility.Documents.LanguagesExtensibility extensibilityPoint, string generatorId);
static member GetDiagnosticsReporter : Microsoft.VisualStudio.Extensibility.Documents.LanguagesExtensibility * string -> Microsoft.VisualStudio.Extensibility.Documents.DiagnosticsReporter
<Extension()>
Public Function GetDiagnosticsReporter (extensibilityPoint As LanguagesExtensibility, generatorId As String) As DiagnosticsReporter

Parameters

extensibilityPoint
LanguagesExtensibility

Extensibility object instance.

generatorId
String

Unique identifier for the component that owns the reporter to be created.

Returns

an instance of DiagnosticsReporter that can be utilized to report/clear diagnostics.

Applies to