Submits a task that is targeted toward this partial monitoring object. Namespace: Microsoft.EnterpriseManagement.Monitoring
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As PartialMonitoringObject
Dim task As MonitoringTask
Dim configuration As MonitoringTaskConfiguration
Dim callback As MonitoringTaskStatusChangeCallback
Dim returnValue As Guid

returnValue = instance.SubmitMonitoringTask(task, configuration, callback)

Syntax

Visual Basic
Public Function SubmitMonitoringTask ( _
		task As MonitoringTask, _
		configuration As MonitoringTaskConfiguration, _
		callback As MonitoringTaskStatusChangeCallback _
) As Guid
C#
public Guid SubmitMonitoringTask (
		MonitoringTask task,
		MonitoringTaskConfiguration configuration,
		MonitoringTaskStatusChangeCallback callback
)
C++
public:
Guid SubmitMonitoringTask (
		MonitoringTask^ task, 
		MonitoringTaskConfiguration^ configuration, 
		MonitoringTaskStatusChangeCallback^ callback
)
J#
public Guid SubmitMonitoringTask (
		MonitoringTask task, 
		MonitoringTaskConfiguration configuration, 
		MonitoringTaskStatusChangeCallback callback
)
JScript
public function SubmitMonitoringTask (
		task : MonitoringTask, 
		configuration : MonitoringTaskConfiguration, 
		callback : MonitoringTaskStatusChangeCallback
) : Guid

Parameters

task

The task to submit.

configuration

The configuration settings for the task to submit.

callback

The optional callback method that notifies the client that the task has been submitted.

Return Value

The globally unique identifier (GUID) representing the submitted task.

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