Applies To: Operations Manager for System Center 2012
Note: This API is now obsolete.
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
)
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
)
[<ObsoleteAttribute("Please use EntityObjects.GetRelatedObjects<T>()")>]
member GetRelatedMonitoringObjects<'T when 'T : PartialMonitoringObjectBase> : 
        monitoringObjects:ICollection<'T> *
        monitoringClasses:IList<MonitoringClass> -> 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)
) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringObject))
Parameters
- monitoringObjects 
 Type: System.Collections.Generic.ICollection<T>- The monitoring objects to find related monitoring objects for. 
- monitoringClasses 
 Type: System.Collections.Generic.IList<MonitoringClass>- The monitoring classes to scope the results by. Only the monitoring objects that are of the specified types or derived types are returned. 
Return Value
Type: System.Collections.Generic.Dictionary<T, ReadOnlyCollection<MonitoringObject>>
Returns aDictionary<TKey, TValue> objectthat relates collections of monitoring objects to given types.
Type Parameters
- T
 Must be of type PartialMonitoringObject.
See Also
GetRelatedMonitoringObjects Overload
ManagementGroup Class
Microsoft.EnterpriseManagement Namespace
Return to top