PartialMonitoringObject.GetMonitoringStates Method (ICollection)

Updated: April 16, 2012

Gets the monitoring state of the specified monitor objects. Namespace: Microsoft.EnterpriseManagement.Monitoring
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)Dim instance As PartialMonitoringObject Dim monitors As ICollection(Of ManagementPackMonitor) Dim returnValue As ReadOnlyCollection(Of MonitoringState) returnValue = instance.GetMonitoringStates(monitors)<ObsoleteAttribute("This version will be removed in favor of the version that return IList and takes IEnumerable")> _ Public Function GetMonitoringStates ( _ monitors As ICollection(Of ManagementPackMonitor) _ ) As ReadOnlyCollection(Of MonitoringState)[ObsoleteAttribute("This version will be removed in favor of the version that return IList and takes IEnumerable")] public ReadOnlyCollection<MonitoringState> GetMonitoringStates ( ICollection<ManagementPackMonitor> monitors )[ObsoleteAttribute(L"This version will be removed in favor of the version that return IList and takes IEnumerable")] public: ReadOnlyCollection<MonitoringState^>^ GetMonitoringStates ( ICollection<ManagementPackMonitor^>^ monitors )/** @attribute ObsoleteAttribute("This version will be removed in favor of the version that return IList and takes IEnumerable") */ public ReadOnlyCollection<MonitoringState> GetMonitoringStates ( ICollection<ManagementPackMonitor> monitors )ObsoleteAttribute("This version will be removed in favor of the version that return IList and takes IEnumerable") public function GetMonitoringStates ( monitors : ICollection<ManagementPackMonitor> ) : ReadOnlyCollection<MonitoringState>ParametersmonitorsThe monitors for which to get the state.Return ValueReturns ReadOnlyCollection of MonitoringState values.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms