Compartilhar via


IMonitoringConfigurationManagement.GetDiagnostics Method (ManagementPackClass, ManagementPackDiagnosticCriteria, BaseClassTraversalDepth)

Retrieves all the diagnostics for the target class.

Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

'Usage
Dim instance As IMonitoringConfigurationManagement
Dim managementPackClass As ManagementPackClass
Dim criteria As ManagementPackDiagnosticCriteria
Dim baseClassTraversalDepth As BaseClassTraversalDepth
Dim returnValue As IList(Of ManagementPackDiagnostic)

returnValue = instance.GetDiagnostics(managementPackClass, criteria, baseClassTraversalDepth)

Syntax

'Declaration
Function GetDiagnostics ( _
    managementPackClass As ManagementPackClass, _
    criteria As ManagementPackDiagnosticCriteria, _
    baseClassTraversalDepth As BaseClassTraversalDepth _
) As IList(Of ManagementPackDiagnostic)
IList<ManagementPackDiagnostic> GetDiagnostics (
    ManagementPackClass managementPackClass,
    ManagementPackDiagnosticCriteria criteria,
    BaseClassTraversalDepth baseClassTraversalDepth
)
IList<ManagementPackDiagnostic^>^ GetDiagnostics (
    ManagementPackClass^ managementPackClass, 
    ManagementPackDiagnosticCriteria^ criteria, 
    BaseClassTraversalDepth baseClassTraversalDepth
)
IList<ManagementPackDiagnostic> GetDiagnostics (
    ManagementPackClass managementPackClass, 
    ManagementPackDiagnosticCriteria criteria, 
    BaseClassTraversalDepth baseClassTraversalDepth
)
function GetDiagnostics (
    managementPackClass : ManagementPackClass, 
    criteria : ManagementPackDiagnosticCriteria, 
    baseClassTraversalDepth : BaseClassTraversalDepth
) : IList<ManagementPackDiagnostic>

Parameters

  • managementPackClass
    The target class.
  • criteria
    The criteria to apply for diagnostics retrieval.
  • baseClassTraversalDepth
    Indicates whether or not to include this class’s base classes as targets for the diagnostic.

Return Value

Returns IList.

All the diagnostics for the target class.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

IMonitoringConfigurationManagement Interface
IMonitoringConfigurationManagement Members
Microsoft.EnterpriseManagement Namespace