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
- derivedClassTraversalDepth 
 Type: Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth- Determines whether to also return all derived classes that are targets for the relationship type. A value of None does not include derived classes. A value of Recursive includes derived classes. 
- relationshipClass 
 Type: Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass- The relationship type by which to retrieve related monitoring classes. This type and any relationship types derived from this type will be used. 
- 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