ManagementGroup::GetRelatedMonitoringObjects<T> Method (ICollection<T>^, MonitoringClass^, TraversalDepth)

System Center
 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Retrieves a collection of the monitoring object instances for the specified class that are related to the specified monitoring objects, with the option to include instances of derived classes.

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

public:
generic<typename T>
where T : PartialMonitoringObjectBase
[ObsoleteAttribute("Please use EntityObjects.GetRelatedObjects<T>()")]
Dictionary<T, ReadOnlyCollection<MonitoringObject^>^>^ GetRelatedMonitoringObjects(
	ICollection<T>^ monitoringObjects,
	MonitoringClass^ monitoringClass,
	TraversalDepth traversalDepth
)

Parameters

monitoringObjects
Type: System.Collections.Generic::ICollection<T>^

The monitoring objects to find related objects for.

monitoringClass
Type: Microsoft.EnterpriseManagement.Configuration::MonitoringClass^

The monitoring class, with all its derived classes, that defines the range of the returned results.

traversalDepth
Type: Microsoft.EnterpriseManagement.Common::TraversalDepth

A value that modifies the limits of the monitoringClass parameter. A value ofOneLevel includes only instances of the specified class in the scope of the returned results. A value ofRecursive includes instances of the specified class and all instances that are contained by those instances.

Type Parameters

T

Must be of typePartialMonitoringObject.

Return to top
Show: