Share via


DiagnosticReport Constructor

Definition

Initializes a new instance of the DiagnosticReport class.

public:
 DiagnosticReport(int managerId, System::String ^ generatorId, int serverState, System::Collections::Generic::IReadOnlyList<Microsoft::VisualStudio::RpcContracts::DiagnosticManagement::DiagnosticCollection ^> ^ diagnosticCollections);
public DiagnosticReport (int managerId, string generatorId, int serverState, System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.DiagnosticManagement.DiagnosticCollection> diagnosticCollections);
new Microsoft.VisualStudio.RpcContracts.DiagnosticManagement.DiagnosticReport : int * string * int * System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.DiagnosticManagement.DiagnosticCollection> -> Microsoft.VisualStudio.RpcContracts.DiagnosticManagement.DiagnosticReport
Public Sub New (managerId As Integer, generatorId As String, serverState As Integer, diagnosticCollections As IReadOnlyList(Of DiagnosticCollection))

Parameters

managerId
Int32

ID of the manager that created the diagnostics.

generatorId
String

ID of the generator within the manager that created the diagnostics.

serverState
Int32

Server state after updating the diagnostics (this is a counter that is incremented every time there is a change.

diagnosticCollections
IReadOnlyList<DiagnosticCollection>

All the diagnostics associated with the ManagerId, GeneratorId pair.

Remarks

managerId is a unique ID provided for each component reporting diagnostics. Each diagnostic collection will have a unique identifier consisting of (managerId, generatorId).

generatorId defines a unique set of diagnostics produced by a manager. Each manager is responsible for creating is generator IDs.

Applies to