ManagementGroup::GetRelatedMonitoringObjects<T> Method (ICollection<T>^, ICollection<MonitoringObjectCriteria^>^, TraversalDepth)
Applies To: Operations Manager for System Center 2012
Retrieves a collection of the monitoring object instances that are related to the specified monitoring objects that match the specified filter, with the option to include instances of derived classes.
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
public: generic<typename T> where T : PartialMonitoringObjectBase [ObsoleteAttribute("Please use MonitoringInstances.GetRelatedObjects<T>()")] Dictionary<T, ReadOnlyCollection<MonitoringObject^>^>^ GetRelatedMonitoringObjects( ICollection<T>^ monitoringObjects, ICollection<MonitoringObjectCriteria^>^ criteriaCollection, TraversalDepth traversalDepth )
Parameters
- monitoringObjects
-
Type:
System.Collections.Generic::ICollection<T>^
The monitoring objects to find related objects for.
- criteriaCollection
-
Type:
System.Collections.Generic::ICollection<MonitoringObjectCriteria^>^
A value that specifies the kind of monitoring objects.
- traversalDepth
-
Type:
Microsoft.EnterpriseManagement.Common::TraversalDepth
A value that modifies the limits of the monitoringObjects parameter. 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.Generic::Dictionary<T, ReadOnlyCollection<MonitoringObject^>^>^Returns aDictionary<TKey, TValue> object ofMonitoringObject objects.
Type Parameters
- T
Must be of type PartialMonitoringObject.