ManagementGroup.GetMonitoringStateForMonitoringObjects<T> Method (ICollection<T>, ICollection<ManagementPackMonitor>)
Applies To: Operations Manager for System Center 2012
Note: This API is now obsolete.
Retrieves the monitoring state for a collection of monitoring objects and monitors.
Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
[ObsoleteAttribute("Please use EntityObjects.GetMonitoringStateForObjects<T>()")]
public Dictionary<T, ReadOnlyCollection<MonitoringState>> GetMonitoringStateForMonitoringObjects<T>(
ICollection<T> monitoringObjects,
ICollection<ManagementPackMonitor> monitors
)
where T : PartialMonitoringObject
public:
generic<typename T>
where T : PartialMonitoringObject
[ObsoleteAttribute("Please use EntityObjects.GetMonitoringStateForObjects<T>()")]
Dictionary<T, ReadOnlyCollection<MonitoringState^>^>^ GetMonitoringStateForMonitoringObjects(
ICollection<T>^ monitoringObjects,
ICollection<ManagementPackMonitor^>^ monitors
)
[<ObsoleteAttribute("Please use EntityObjects.GetMonitoringStateForObjects<T>()")>]
member GetMonitoringStateForMonitoringObjects<'T when 'T : PartialMonitoringObject> :
monitoringObjects:ICollection<'T> *
monitors:ICollection<ManagementPackMonitor> -> Dictionary<'T, ReadOnlyCollection<MonitoringState>>
<ObsoleteAttribute("Please use EntityObjects.GetMonitoringStateForObjects<T>()")>
Public Function GetMonitoringStateForMonitoringObjects(Of T As PartialMonitoringObject) (
monitoringObjects As ICollection(Of T),
monitors As ICollection(Of ManagementPackMonitor)
) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringState))
Parameters
monitoringObjects
Type: System.Collections.Generic.ICollection<T>The monitoring objects for which the monitoring state is returned.
monitors
Type: System.Collections.Generic.ICollection<ManagementPackMonitor>The monitor objects for which the monitoring state is returned.
Return Value
Type: System.Collections.Generic.Dictionary<T, ReadOnlyCollection<MonitoringState>>
Returns aDictionary<TKey, TValue> object ofMonitoringState objects.
Type Parameters
- T
Must be of type PartialMonitoringObject
See Also
ManagementGroup Class
Microsoft.EnterpriseManagement Namespace
Return to top