ManagementGroup.GetMonitoringTasks Method (MonitoringTaskCriteria)
Retrieves a collection of monitoring tasks 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 MonitoringTaskCriteria
Dim returnValue As ReadOnlyCollection(Of MonitoringTask)
returnValue = instance.GetMonitoringTasks(criteria)
Syntax
'Declaration
Public Function GetMonitoringTasks ( _
criteria As MonitoringTaskCriteria _
) As ReadOnlyCollection(Of MonitoringTask)
public ReadOnlyCollection<MonitoringTask> GetMonitoringTasks (
MonitoringTaskCriteria criteria
)
public:
ReadOnlyCollection<MonitoringTask^>^ GetMonitoringTasks (
MonitoringTaskCriteria^ criteria
)
public ReadOnlyCollection<MonitoringTask> GetMonitoringTasks (
MonitoringTaskCriteria criteria
)
public function GetMonitoringTasks (
criteria : MonitoringTaskCriteria
) : ReadOnlyCollection<MonitoringTask>
Parameters
- criteria
A value that specifies the kind of monitoring task objects.
Return Value
A read-only collection of MonitoringTask 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