Share via


ManagementGroup.GetMonitoringStateForMonitoringObjects<T> Method

Definition

Caution

Please use EntityObjects.GetMonitoringStateForObjects<T>()

Gets monitoring state for a list of monitoring objects and monitors.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObject System::Collections::Generic::Dictionary<T, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringState ^> ^> ^ GetMonitoringStateForMonitoringObjects(System::Collections::Generic::ICollection<T> ^ monitoringObjects, System::Collections::Generic::ICollection<Microsoft::EnterpriseManagement::Configuration::ManagementPackMonitor ^> ^ monitors);
[System.Obsolete("Please use EntityObjects.GetMonitoringStateForObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringState>> GetMonitoringStateForMonitoringObjects<T> (System.Collections.Generic.ICollection<T> monitoringObjects, System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Configuration.ManagementPackMonitor> monitors) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject;
member this.GetMonitoringStateForMonitoringObjects : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)> * System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Configuration.ManagementPackMonitor> -> System.Collections.Generic.Dictionary<'T, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringState> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)
Public Function GetMonitoringStateForMonitoringObjects(Of T As PartialMonitoringObject) (monitoringObjects As ICollection(Of T), monitors As ICollection(Of ManagementPackMonitor)) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringState))

Type Parameters

T

At least a PartialMonitoringObject

Parameters

monitoringObjects
ICollection<T>

The objects.

monitors
ICollection<ManagementPackMonitor>

The monitors.

Returns

A dictionary of monitoring objects to a collection of states.

Attributes

Applies to