ManagementGroup.GetMonitors Method (MonitorCriteria)
Retrieves a collection of monitor objects that match the specified filter.
Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)
Usage
'Usage
Dim instance As ManagementGroup
Dim criteria As MonitorCriteria
Dim returnValue As ReadOnlyCollection(Of ManagementPackMonitor)
returnValue = instance.GetMonitors(criteria)
Syntax
'Declaration
Public Function GetMonitors ( _
criteria As MonitorCriteria _
) As ReadOnlyCollection(Of ManagementPackMonitor)
public ReadOnlyCollection<ManagementPackMonitor> GetMonitors (
MonitorCriteria criteria
)
public:
ReadOnlyCollection<ManagementPackMonitor^>^ GetMonitors (
MonitorCriteria^ criteria
)
public ReadOnlyCollection<ManagementPackMonitor> GetMonitors (
MonitorCriteria criteria
)
public function GetMonitors (
criteria : MonitorCriteria
) : ReadOnlyCollection<ManagementPackMonitor>
Parameters
- criteria
A value that specifies the kind of monitor objects.
Return Value
A read-only collection of ManagementPackMonitor objects.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP
Target Platforms
Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP
See Also
Reference
ManagementGroup Class
ManagementGroup Members
Microsoft.EnterpriseManagement Namespace