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

System Center
 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

GetsPartialMonitoringObjectinstances that are related to the specifiedMonitoringObjectobjects and that are scoped by the specified types (monitoring classes) or by any of the derived types. You also specify the traversal depth that you want to be used while searching for related monitoring objects.

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

public:
generic<typename T>
where T : PartialMonitoringObjectBase
[ObsoleteAttribute("Please use EntityObjects.GetRelatedPartialMonitoringObjects<T>()")]
Dictionary<T, ReadOnlyCollection<PartialMonitoringObject^>^>^ GetRelatedPartialMonitoringObjects(
	ICollection<T>^ monitoringObjects,
	IList<MonitoringClass^>^ monitoringClasses,
	TraversalDepth traversalDepth
)

Parameters

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

The monitoring objects to find related partial monitoring objects for.

monitoringClasses
Type: System.Collections.Generic::IList<MonitoringClass^>^

The monitoring classes to scope the results by. Only the partial monitoring objects that are of the specified types or derived types are returned.

traversalDepth
Type: Microsoft.EnterpriseManagement.Common::TraversalDepth

true to return partial monitoring objects that are of the specified types and the derived types.false to return only monitoring objects that are of the specified types (not the derived types).

Return Value

Type: System.Collections.Generic::Dictionary<T, ReadOnlyCollection<PartialMonitoringObject^>^>^

Returns aDictionary<TKey, TValue> that relates collections of partial monitoring objects to given types.

Type Parameters

T

Must be of type PartialMonitoringObject.

For information about accessing monitoring object information, see How to Display Information about a Monitoring Object

When you consider whether to use theGetRelatedMonitoringObjects<T>method or the GetRelatedPartialMonitoringObjects<T>method, refer to the information inMonitoring Object and Partial Monitoring Object Comparison

Return to top
Show: