ITaskRuntimeManagement.SubmitTask 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.
Overloads
| SubmitTask(EnterpriseManagementObject, ManagementPackTask, TaskConfiguration) |
Submits a task targeted toward this monitoring object. |
| SubmitTask(EnterpriseManagementObject, ManagementPackTask, TaskConfiguration, TaskStatusChangeCallback) |
Submits a task targeted toward this monitoring object. |
| SubmitTask<T>(IEnumerable<T>, ManagementPackTask, TaskConfiguration) |
Submits a task targeted to a collection of monitoring objects and returns a batch id for getting results manually |
| SubmitTask<T>(IEnumerable<T>, ManagementPackTask, TaskConfiguration, TaskStatusChangeCallback) |
Submits a task targeted to a collection of monitoring objects and returns a batch id under which the tasks were executed. Caller will be called back on the specified callback when any of task results change for the batch, with the new results. |
SubmitTask(EnterpriseManagementObject, ManagementPackTask, TaskConfiguration)
Submits a task targeted toward this monitoring object.
public:
Guid SubmitTask(Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject ^ instance, Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^ task, Microsoft::EnterpriseManagement::Runtime::TaskConfiguration ^ configuration);
public Guid SubmitTask (Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject instance, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Runtime.TaskConfiguration configuration);
abstract member SubmitTask : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject * Microsoft.EnterpriseManagement.Configuration.ManagementPackTask * Microsoft.EnterpriseManagement.Runtime.TaskConfiguration -> Guid
Public Function SubmitTask (instance As EnterpriseManagementObject, task As ManagementPackTask, configuration As TaskConfiguration) As Guid
Parameters
- instance
- EnterpriseManagementObject
- task
- ManagementPackTask
The task to submit.
- configuration
- TaskConfiguration
The configuration of the task.
Returns
A TaskResultStatus object to track completion status for this batch.
Exceptions
task is null
Applies to
SubmitTask(EnterpriseManagementObject, ManagementPackTask, TaskConfiguration, TaskStatusChangeCallback)
Submits a task targeted toward this monitoring object.
public:
Guid SubmitTask(Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject ^ instance, Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^ task, Microsoft::EnterpriseManagement::Runtime::TaskConfiguration ^ configuration, Microsoft::EnterpriseManagement::Runtime::TaskStatusChangeCallback ^ callback);
public Guid SubmitTask (Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject instance, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Runtime.TaskConfiguration configuration, Microsoft.EnterpriseManagement.Runtime.TaskStatusChangeCallback callback);
abstract member SubmitTask : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject * Microsoft.EnterpriseManagement.Configuration.ManagementPackTask * Microsoft.EnterpriseManagement.Runtime.TaskConfiguration * Microsoft.EnterpriseManagement.Runtime.TaskStatusChangeCallback -> Guid
Public Function SubmitTask (instance As EnterpriseManagementObject, task As ManagementPackTask, configuration As TaskConfiguration, callback As TaskStatusChangeCallback) As Guid
Parameters
- instance
- EnterpriseManagementObject
- task
- ManagementPackTask
The task to submit.
- configuration
- TaskConfiguration
The configuration of the task.
- callback
- TaskStatusChangeCallback
The optional callback to notify the client on.
Returns
The batch id of the submitted task.
Exceptions
task is null
Applies to
SubmitTask<T>(IEnumerable<T>, ManagementPackTask, TaskConfiguration)
Submits a task targeted to a collection of monitoring objects and returns a batch id for getting results manually
public:
generic <typename T>
where T : Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject Guid SubmitTask(System::Collections::Generic::IEnumerable<T> ^ targets, Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^ task, Microsoft::EnterpriseManagement::Runtime::TaskConfiguration ^ configuration);
public Guid SubmitTask<T> (System.Collections.Generic.IEnumerable<T> targets, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Runtime.TaskConfiguration configuration) where T : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject;
abstract member SubmitTask : seq<'T (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)> * Microsoft.EnterpriseManagement.Configuration.ManagementPackTask * Microsoft.EnterpriseManagement.Runtime.TaskConfiguration -> Guid (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)
Public Function SubmitTask(Of T As EnterpriseManagementObject) (targets As IEnumerable(Of T), task As ManagementPackTask, configuration As TaskConfiguration) As Guid
Type Parameters
- T
Parameters
- targets
- IEnumerable<T>
The entities to target.
- task
- ManagementPackTask
The task to submit.
- configuration
- TaskConfiguration
The configuration of the task.
Returns
The batch id of the submitted task(s).
Exceptions
targets or task is null
targets is empty
Applies to
SubmitTask<T>(IEnumerable<T>, ManagementPackTask, TaskConfiguration, TaskStatusChangeCallback)
Submits a task targeted to a collection of monitoring objects and returns a batch id under which the tasks were executed.
Caller will be called back on the specified callback when any of task results change for the batch, with the new results.
public:
generic <typename T>
where T : Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject Guid SubmitTask(System::Collections::Generic::IEnumerable<T> ^ targets, Microsoft::EnterpriseManagement::Configuration::ManagementPackTask ^ task, Microsoft::EnterpriseManagement::Runtime::TaskConfiguration ^ configuration, Microsoft::EnterpriseManagement::Runtime::TaskStatusChangeCallback ^ callback);
public Guid SubmitTask<T> (System.Collections.Generic.IEnumerable<T> targets, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Runtime.TaskConfiguration configuration, Microsoft.EnterpriseManagement.Runtime.TaskStatusChangeCallback callback) where T : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject;
abstract member SubmitTask : seq<'T (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)> * Microsoft.EnterpriseManagement.Configuration.ManagementPackTask * Microsoft.EnterpriseManagement.Runtime.TaskConfiguration * Microsoft.EnterpriseManagement.Runtime.TaskStatusChangeCallback -> Guid (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)
Public Function SubmitTask(Of T As EnterpriseManagementObject) (targets As IEnumerable(Of T), task As ManagementPackTask, configuration As TaskConfiguration, callback As TaskStatusChangeCallback) As Guid
Type Parameters
- T
Parameters
- targets
- IEnumerable<T>
The entities to target.
- task
- ManagementPackTask
The task to submit.
- configuration
- TaskConfiguration
The configuration of the task.
- callback
- TaskStatusChangeCallback
The optional callback to notify the client on.
Returns
The batch id of the submitted task(s).
Exceptions
targets or task is null
targets is empty