PartialMonitoringObject.ExecuteMonitoringTask Method
Synchronously executes 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 returnValue As ReadOnlyCollection(Of MonitoringTaskResult)
returnValue = instance.ExecuteMonitoringTask(task, configuration)
Syntax
'Declaration
Public Function ExecuteMonitoringTask ( _
task As MonitoringTask, _
configuration As MonitoringTaskConfiguration _
) As ReadOnlyCollection(Of MonitoringTaskResult)
public ReadOnlyCollection<MonitoringTaskResult> ExecuteMonitoringTask (
MonitoringTask task,
MonitoringTaskConfiguration configuration
)
public:
ReadOnlyCollection<MonitoringTaskResult^>^ ExecuteMonitoringTask (
MonitoringTask^ task,
MonitoringTaskConfiguration^ configuration
)
public ReadOnlyCollection<MonitoringTaskResult> ExecuteMonitoringTask (
MonitoringTask task,
MonitoringTaskConfiguration configuration
)
public function ExecuteMonitoringTask (
task : MonitoringTask,
configuration : MonitoringTaskConfiguration
) : ReadOnlyCollection<MonitoringTaskResult>
Parameters
- task
The task to execute.
- configuration
The configuration settings for the task.
Return Value
A read-only collection of MonitoringTaskResult objects that contain the result of the task execution.
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