PartialMonitoringObject.BeginExecuteMonitoringTask Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use ManagementGroup.TaskRuntime.BeginExecuteTask methods that take this object
Begins the execution of a task.
public:
IAsyncResult ^ BeginExecuteMonitoringTask(Microsoft::EnterpriseManagement::Runtime::MonitoringTask ^ task, Microsoft::EnterpriseManagement::Runtime::TaskConfiguration ^ configuration, AsyncCallback ^ callback, System::Object ^ state);
[System.Obsolete("Use ManagementGroup.TaskRuntime.BeginExecuteTask methods that take this object")]
public IAsyncResult BeginExecuteMonitoringTask (Microsoft.EnterpriseManagement.Runtime.MonitoringTask task, Microsoft.EnterpriseManagement.Runtime.TaskConfiguration configuration, AsyncCallback callback, object state);
member this.BeginExecuteMonitoringTask : Microsoft.EnterpriseManagement.Runtime.MonitoringTask * Microsoft.EnterpriseManagement.Runtime.TaskConfiguration * AsyncCallback * obj -> IAsyncResult
Public Function BeginExecuteMonitoringTask (task As MonitoringTask, configuration As TaskConfiguration, callback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- task
- MonitoringTask
The task to submit.
- configuration
- TaskConfiguration
The configuration of the task.
- callback
- AsyncCallback
The callback to get notified on when the task completes.
- state
- Object
The optional state to pass back to the callback.
Returns
An IAsyncResult object.
- Attributes