PartialMonitoringObject.SubmitMonitoringTask 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.
Submits a task that is targeted toward this partial monitoring object.
Overloads
SubmitMonitoringTask(MonitoringTask, TaskConfiguration, MonitoringTaskStatusChangeCallback) |
Obsolete.
Submits a task targeted toward this monitoring object. |
SubmitMonitoringTask(MonitoringTask, TaskConfiguration) |
Obsolete.
Submits a task targeted toward this monitoring object. |
SubmitMonitoringTask(MonitoringTask, TaskConfiguration, MonitoringTaskStatusChangeCallback)
Caution
Use ManagementGroup.TaskRuntime.SubmitTask methods that take this object
Submits a task targeted toward this monitoring object.
public:
Guid SubmitMonitoringTask(Microsoft::EnterpriseManagement::Runtime::MonitoringTask ^ task, Microsoft::EnterpriseManagement::Runtime::TaskConfiguration ^ configuration, Microsoft::EnterpriseManagement::Monitoring::MonitoringTaskStatusChangeCallback ^ callback);
[System.Obsolete("Use ManagementGroup.TaskRuntime.SubmitTask methods that take this object")]
public Guid SubmitMonitoringTask (Microsoft.EnterpriseManagement.Runtime.MonitoringTask task, Microsoft.EnterpriseManagement.Runtime.TaskConfiguration configuration, Microsoft.EnterpriseManagement.Monitoring.MonitoringTaskStatusChangeCallback callback);
member this.SubmitMonitoringTask : Microsoft.EnterpriseManagement.Runtime.MonitoringTask * Microsoft.EnterpriseManagement.Runtime.TaskConfiguration * Microsoft.EnterpriseManagement.Monitoring.MonitoringTaskStatusChangeCallback -> Guid
Public Function SubmitMonitoringTask (task As MonitoringTask, configuration As TaskConfiguration, callback As MonitoringTaskStatusChangeCallback) As Guid
Parameters
- task
- MonitoringTask
The task to submit.
- configuration
- TaskConfiguration
The configuration of the task.
- callback
- MonitoringTaskStatusChangeCallback
The optional callback to notify the client on.
Returns
The batch id of the submitted task.
- Attributes
Exceptions
task is null
Applies to
SubmitMonitoringTask(MonitoringTask, TaskConfiguration)
Caution
Use ManagementGroup.TaskRuntime.SubmitTask methods that take this object
Submits a task targeted toward this monitoring object.
public:
Guid SubmitMonitoringTask(Microsoft::EnterpriseManagement::Runtime::MonitoringTask ^ task, Microsoft::EnterpriseManagement::Runtime::TaskConfiguration ^ configuration);
[System.Obsolete("Use ManagementGroup.TaskRuntime.SubmitTask methods that take this object")]
public Guid SubmitMonitoringTask (Microsoft.EnterpriseManagement.Runtime.MonitoringTask task, Microsoft.EnterpriseManagement.Runtime.TaskConfiguration configuration);
member this.SubmitMonitoringTask : Microsoft.EnterpriseManagement.Runtime.MonitoringTask * Microsoft.EnterpriseManagement.Runtime.TaskConfiguration -> Guid
Public Function SubmitMonitoringTask (task As MonitoringTask, configuration As TaskConfiguration) As Guid
Parameters
- task
- MonitoringTask
The task to submit.
- configuration
- TaskConfiguration
The configuration of the task.
Returns
A TaskResultStatus object to track completion status for this batch.
- Attributes
Exceptions
task is null