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

Return Value

Type: System.Collections.Generic.Dictionary<T, ReadOnlyCollection<MonitoringState>>

Returns aDictionary<TKey, TValue> object ofMonitoringState objects.

Type Parameters

See Also

ManagementGroup Class
Microsoft.EnterpriseManagement Namespace

Return to top