ManagementGroup::BeginExecuteMonitoringTask<T> Method (ICollection<T>^, MonitoringTask^, TaskConfiguration^, AsyncCallback^, Object^)
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
Asynchronously begins executing a task.
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
public: generic<typename T> where T : PartialMonitoringObject [ObsoleteAttribute("Please use TaskRuntime.BeginExecuteMonitoringTask<T>()")] IAsyncResult^ BeginExecuteMonitoringTask( ICollection<T>^ targets, MonitoringTask^ task, TaskConfiguration^ configuration, AsyncCallback^ callback, Object^ state )
Parameters
- targets
-
Type:
System.Collections.Generic::ICollection<T>^
The monitoring objects that the task targets.
- task
-
Type:
Microsoft.EnterpriseManagement.Runtime::MonitoringTask^
The task to begin executing.
- configuration
-
Type:
Microsoft.EnterpriseManagement.Runtime::TaskConfiguration^
The configuration of the task.
- callback
-
Type:
System::AsyncCallback^
The callback method that gets called when the task is complete.
- state
-
Type:
System::Object^
The optional state to pass back to the callback method.
Type Parameters
- T
Must be of typePartialMonitoringObject
For an example of theM:Microsoft.EnterpriseManagement.ManagementGroup.BeginExecuteMonitoringTask``1(System.Collections.Generic.ICollection{``0},Microsoft.EnterpriseManagement.Configuration.MonitoringTask,Microsoft.EnterpriseManagement.Configuration.MonitoringTaskConfiguration,System.AsyncCallback,System.Object)method, see How to Asynchronously Run a Management Pack Task
Show: