Applies To: Operations Manager for System Center 2012
Note: This API is now obsolete.
Retrieves a collection of the monitoring object instances that are related to the specified monitoring objects and that match the specified filter.
Namespace:   Microsoft.EnterpriseManagement
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
[ObsoleteAttribute("Please use MonitoringInstances.GetRelatedObjects<T>()")]
public Dictionary<T, ReadOnlyCollection<MonitoringObject>> GetRelatedMonitoringObjects<T>(
    ICollection<T> monitoringObjects,
    MonitoringObjectCriteria criteria
)
where T : PartialMonitoringObjectBase
public:
generic<typename T>
where T : PartialMonitoringObjectBase
[ObsoleteAttribute("Please use MonitoringInstances.GetRelatedObjects<T>()")]
Dictionary<T, ReadOnlyCollection<MonitoringObject^>^>^ GetRelatedMonitoringObjects(
    ICollection<T>^ monitoringObjects,
    MonitoringObjectCriteria^ criteria
)
[<ObsoleteAttribute("Please use MonitoringInstances.GetRelatedObjects<T>()")>]
member GetRelatedMonitoringObjects<'T when 'T : PartialMonitoringObjectBase> : 
        monitoringObjects:ICollection<'T> *
        criteria:MonitoringObjectCriteria -> Dictionary<'T, ReadOnlyCollection<MonitoringObject>>
<ObsoleteAttribute("Please use MonitoringInstances.GetRelatedObjects<T>()")>
Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (
    monitoringObjects As ICollection(Of T),
    criteria As MonitoringObjectCriteria
) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringObject))
Parameters
- monitoringObjects 
 Type: System.Collections.Generic.ICollection<T>- The monitoring objects to find related objects for. 
- criteria 
 Type: Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria- A value that specifies the kind of related monitoring objects. 
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.
See Also
GetRelatedMonitoringObjects Overload
ManagementGroup Class
Microsoft.EnterpriseManagement Namespace
Return to top