System Center
Submits a specified task, providing the targeted objects, task configuration settings, and a callback if task results change.
Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)
Usage
'Usage
Dim instance As ManagementGroup
Dim targets As ICollection(Of T)
Dim task As MonitoringTask
Dim configuration As MonitoringTaskConfiguration
Dim callback As MonitoringTaskStatusChangeCallback
Dim returnValue As Guid
returnValue = instance.SubmitMonitoringTask(targets, task, configuration, callback)
Syntax
'Declaration
Public Function SubmitMonitoringTask(Of T As PartialMonitoringObject) ( _
targets As ICollection(Of T), _
task As MonitoringTask, _
configuration As MonitoringTaskConfiguration, _
callback As MonitoringTaskStatusChangeCallback _
) As Guid
public Guid SubmitMonitoringTask<T> (
ICollection<T> targets,
MonitoringTask task,
MonitoringTaskConfiguration configuration,
MonitoringTaskStatusChangeCallback callback
) where T : PartialMonitoringObject
public:
generic<typename T> where T : PartialMonitoringObject
Guid SubmitMonitoringTask (
ICollection<T>^ targets,
MonitoringTask^ task,
MonitoringTaskConfiguration^ configuration,
MonitoringTaskStatusChangeCallback^ callback
)
GenericParameters
- T
Must be of type PartialMonitoringObject.
Parameters
- targets
The objects that the task targets.
- task
The task to submit.
- configuration
Configuration settings for the task.
- callback
The callback method that is called when any of the task results change for the batch.
Return Value
A GUID that is used to get the task results manually.
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
ManagementGroup Class
ManagementGroup Members
Microsoft.EnterpriseManagement Namespace