ManagementGroup::GetRelatedMonitoringObjects<T> Method (ICollection<T>^, IList<MonitoringClass^>^)
System Center
Applies To: Operations Manager for System Center 2012
Note: This API is now obsolete.
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Return to top
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, IList<MonitoringClass^>^ monitoringClasses )
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.
Show: