Compartilhar via


MonitoringClass.GetRelatedMonitoringClasses Method (DerivedClassTraversalDepth, MonitoringRelationshipClass, TraversalDepth)

 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Retrieves all the monitoring object classes that are targets of the specified relationship type where this class is the source.

Namespace:   Microsoft.EnterpriseManagement.Configuration
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Syntax

[ObsoleteAttribute("Please use GetRelatedClasses() instead")]
public ReadOnlyCollection<MonitoringClass> GetRelatedMonitoringClasses(
    DerivedClassTraversalDepth derivedClassTraversalDepth,
    MonitoringRelationshipClass relationshipClass,
    TraversalDepth traversalDepth
)
public:
[ObsoleteAttribute("Please use GetRelatedClasses() instead")]
ReadOnlyCollection<MonitoringClass^>^ GetRelatedMonitoringClasses(
    DerivedClassTraversalDepth derivedClassTraversalDepth,
    MonitoringRelationshipClass^ relationshipClass,
    TraversalDepth traversalDepth
)
[<ObsoleteAttribute("Please use GetRelatedClasses() instead")>]
member GetRelatedMonitoringClasses : 
        derivedClassTraversalDepth:DerivedClassTraversalDepth *
        relationshipClass:MonitoringRelationshipClass *
        traversalDepth:TraversalDepth -> ReadOnlyCollection<MonitoringClass>
<ObsoleteAttribute("Please use GetRelatedClasses() instead")>
Public Function GetRelatedMonitoringClasses (
    derivedClassTraversalDepth As DerivedClassTraversalDepth,
    relationshipClass As MonitoringRelationshipClass,
    traversalDepth As TraversalDepth
) As ReadOnlyCollection(Of MonitoringClass)

Parameters

  • traversalDepth
    Type: Microsoft.EnterpriseManagement.Common.TraversalDepth

    Determines whether to include only instances of the base class or instances of derived classes in the returned results. A value of OneLevel includes only instances of the specified class in the scope of the returned results. A value of Recursive includes instances of the specified class and all instances that are contained by those instances.

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<MonitoringClass>

Returns a ReadOnlyCollection<T> of MonitoringClass objects.

See Also

MonitoringClass Class
Microsoft.EnterpriseManagement.Configuration Namespace

Return to top