ManagementGroup::ExecuteMonitoringTask<T> Method (ICollection<T>^, MonitoringTask^, TaskConfiguration^)
Applies To: Operations Manager for System Center 2012
Note: This API is now obsolete.Namespace:
Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Return to top
Executes a monitoring task.
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
public: generic<typename T> where T : PartialMonitoringObject [ObsoleteAttribute("Please use TaskRuntime.ExecuteMonitoringTask<T>()")] ReadOnlyCollection<MonitoringTaskResult^>^ ExecuteMonitoringTask( ICollection<T>^ targets, MonitoringTask^ task, TaskConfiguration^ configuration )
Parameters
- targets
-
Type:
System.Collections.Generic::ICollection<T>^
The objects that the task targets.
- task
-
Type:
Microsoft.EnterpriseManagement.Runtime::MonitoringTask^
The task to submit.
- configuration
-
Type:
Microsoft.EnterpriseManagement.Runtime::TaskConfiguration^
The configuration settings for the task.
Return Value
Type: System.Collections.ObjectModel::ReadOnlyCollection<MonitoringTaskResult^>^Returns aReadOnlyCollection<T> object that are the results of the task.
Type Parameters
- T
Must be of type PartialMonitoringObject.
For an example of the M:Microsoft.EnterpriseManagement.ManagementGroup.ExecuteMonitoringTask``1(System.Collections.Generic.ICollection{``0},Microsoft.EnterpriseManagement.Configuration.MonitoringTask,Microsoft.EnterpriseManagement.Configuration.MonitoringTaskConfiguration)method, see How to Synchronously Run a Management Pack Task
Show: