PartialMonitoringObject.BeginExecuteMonitoringTask Method

Asynchronously begins the execution of a task.

Namespace: Microsoft.EnterpriseManagement.Monitoring
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

'Usage
Dim instance As PartialMonitoringObject
Dim task As MonitoringTask
Dim configuration As MonitoringTaskConfiguration
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginExecuteMonitoringTask(task, configuration, callback, state)

Syntax

'Declaration
Public Function BeginExecuteMonitoringTask ( _
    task As MonitoringTask, _
    configuration As MonitoringTaskConfiguration, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
public IAsyncResult BeginExecuteMonitoringTask (
    MonitoringTask task,
    MonitoringTaskConfiguration configuration,
    AsyncCallback callback,
    Object state
)
public:
IAsyncResult^ BeginExecuteMonitoringTask (
    MonitoringTask^ task, 
    MonitoringTaskConfiguration^ configuration, 
    AsyncCallback^ callback, 
    Object^ state
)
public IAsyncResult BeginExecuteMonitoringTask (
    MonitoringTask task, 
    MonitoringTaskConfiguration configuration, 
    AsyncCallback callback, 
    Object state
)
public function BeginExecuteMonitoringTask (
    task : MonitoringTask, 
    configuration : MonitoringTaskConfiguration, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

Parameters

  • task
    The task to execute.
  • configuration
    Configuration settings for the task.
  • callback
    The callback method that gets called when the task finishes.
  • state
    The optional state to pass to the callback method.

Return Value

An IAsyncResult object.

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

PartialMonitoringObject Class
PartialMonitoringObject Members
Microsoft.EnterpriseManagement.Monitoring Namespace

Send comments about this topic to Microsoft.