PartialMonitoringObject::GetMonitoringRelationshipObjectsWhereTarget Method (MonitoringRelationshipClass^, DerivedClassTraversalDepth, TraversalDepth)
Applies To: Operations Manager for System Center 2012
Gets the relationships for which this partial monitoring object is a target in the relationship, filtered by the relationshipClasses collection and optionally including all derived classes.
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
public: [ObsoleteAttribute("Use ManagementGroup.EntityObjects.GetMonitoringRelationshipObjectsWhereTarget")] ReadOnlyCollection<MonitoringRelationshipObject^>^ GetMonitoringRelationshipObjectsWhereTarget( MonitoringRelationshipClass^ relationshipClass, DerivedClassTraversalDepth derivedClassTraversalDepth, TraversalDepth traversalDepth )
Parameters
- relationshipClass
-
Type:
Microsoft.EnterpriseManagement.Configuration::MonitoringRelationshipClass^
The relationship type to get.
- derivedClassTraversalDepth
-
Type:
Microsoft.EnterpriseManagement.Configuration::DerivedClassTraversalDepth
A value that specifies whether to include the derived classes of the relationship class in the returned objects.
- traversalDepth
-
Type:
Microsoft.EnterpriseManagement.Common::TraversalDepth
A value that specifies the scope of 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<MonitoringRelationshipObject^>^Returns ReadOnlyCollection<T> of MonitoringRelationshipObjectobjects.