Applies To: Operations Manager for System Center 2012
Retrieves all the monitoring object classes that are sources of the specified relationship type where this class is the target.
Namespace:   Microsoft.EnterpriseManagement.Configuration
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
public ReadOnlyCollection<MonitoringClass> GetParentMonitoringClasses(
    DerivedClassTraversalDepth derivedClassTraversalDepth,
    MonitoringRelationshipClass relationshipClass,
    TraversalDepth traversalDepth
)
public:
ReadOnlyCollection<MonitoringClass^>^ GetParentMonitoringClasses(
    DerivedClassTraversalDepth derivedClassTraversalDepth,
    MonitoringRelationshipClass^ relationshipClass,
    TraversalDepth traversalDepth
)
member GetParentMonitoringClasses : 
        derivedClassTraversalDepth:DerivedClassTraversalDepth *
        relationshipClass:MonitoringRelationshipClass *
        traversalDepth:TraversalDepth -> ReadOnlyCollection<MonitoringClass>
Public Function GetParentMonitoringClasses (
    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 monitoring classes that target classes derived from this class. A value of None does not include derived classes. A value of Recursive includes derived classes. 
- relationshipClass 
 Type: Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass- The relationship by which to retrieve related monitoring classes. 
- 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