ManagementGroup.GetRelatedMonitoringObjects<T> Method (ICollection<T>, IList<MonitoringClass>, TraversalDepth)

 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Gets MonitoringObject instances 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)

Syntax

[ObsoleteAttribute("Please use EntityObjects.GetRelatedObjects<T>()")]
public Dictionary<T, ReadOnlyCollection<MonitoringObject>> GetRelatedMonitoringObjects<T>(
    ICollection<T> monitoringObjects,
    IList<MonitoringClass> monitoringClasses,
    TraversalDepth traversalDepth
)
where T : PartialMonitoringObjectBase
public:
generic<typename T>
where T : PartialMonitoringObjectBase
[ObsoleteAttribute("Please use EntityObjects.GetRelatedObjects<T>()")]
Dictionary<T, ReadOnlyCollection<MonitoringObject^>^>^ GetRelatedMonitoringObjects(
    ICollection<T>^ monitoringObjects,
    IList<MonitoringClass^>^ monitoringClasses,
    TraversalDepth traversalDepth
)
[<ObsoleteAttribute("Please use EntityObjects.GetRelatedObjects<T>()")>]
member GetRelatedMonitoringObjects<'T when 'T : PartialMonitoringObjectBase> : 
        monitoringObjects:ICollection<'T> *
        monitoringClasses:IList<MonitoringClass> *
        traversalDepth:TraversalDepth -> Dictionary<'T, ReadOnlyCollection<MonitoringObject>>
<ObsoleteAttribute("Please use EntityObjects.GetRelatedObjects<T>()")>
Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (
    monitoringObjects As ICollection(Of T),
    monitoringClasses As IList(Of MonitoringClass),
    traversalDepth As TraversalDepth
) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringObject))

Parameters

  • traversalDepth
    Type: Microsoft.EnterpriseManagement.Common.TraversalDepth

    true to return 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<MonitoringObject>>

Returns a Dictionary<TKey, TValue>objectthat relates collections of monitoring objects to given.

Type Parameters

Remarks

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

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

See Also

GetRelatedMonitoringObjects Overload
ManagementGroup Class
Microsoft.EnterpriseManagement Namespace

Return to top