Share via


ITaskRuntimeManagement.SubmitTask Method

Definition

Submits a task targeted toward this monitoring object.

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.

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::Configuration::TaskConfiguration ^ configuration);
public Guid SubmitTask (Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject instance, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Configuration.TaskConfiguration configuration);
abstract member SubmitTask : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject * Microsoft.EnterpriseManagement.Configuration.ManagementPackTask * Microsoft.EnterpriseManagement.Configuration.TaskConfiguration -> Guid
Public Function SubmitTask (instance As EnterpriseManagementObject, task As ManagementPackTask, configuration As TaskConfiguration) As Guid

Parameters

instance
EnterpriseManagementObject

The target instance.

task
ManagementPackTask

The task to submit.

configuration
TaskConfiguration

The configuration of the task.

Returns

Returns Guid.

An ID of the object to track the completion status for this batch.

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::Configuration::TaskConfiguration ^ configuration, Microsoft::EnterpriseManagement::Monitoring::TaskStatusChangeCallback ^ callback);
public Guid SubmitTask (Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject instance, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Configuration.TaskConfiguration configuration, Microsoft.EnterpriseManagement.Monitoring.TaskStatusChangeCallback callback);
abstract member SubmitTask : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject * Microsoft.EnterpriseManagement.Configuration.ManagementPackTask * Microsoft.EnterpriseManagement.Configuration.TaskConfiguration * Microsoft.EnterpriseManagement.Monitoring.TaskStatusChangeCallback -> Guid
Public Function SubmitTask (instance As EnterpriseManagementObject, task As ManagementPackTask, configuration As TaskConfiguration, callback As TaskStatusChangeCallback) As Guid

Parameters

instance
EnterpriseManagementObject

The target instance.

task
ManagementPackTask

The task to submit.

configuration
TaskConfiguration

The configuration of the task.

callback
TaskStatusChangeCallback

The callback to get notified on when the task completes.

Returns

Returns Guid.

The batch ID of the submitted task.

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::Configuration::TaskConfiguration ^ configuration);
public Guid SubmitTask<T> (System.Collections.Generic.IEnumerable<T> targets, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Configuration.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.Configuration.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

Returns Guid.

The batch ID of the submitted task.

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.

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::Configuration::TaskConfiguration ^ configuration, Microsoft::EnterpriseManagement::Monitoring::TaskStatusChangeCallback ^ callback);
public Guid SubmitTask<T> (System.Collections.Generic.IEnumerable<T> targets, Microsoft.EnterpriseManagement.Configuration.ManagementPackTask task, Microsoft.EnterpriseManagement.Configuration.TaskConfiguration configuration, Microsoft.EnterpriseManagement.Monitoring.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.Configuration.TaskConfiguration * Microsoft.EnterpriseManagement.Monitoring.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

Returns Guid.

The batch ID of the submitted task.

Applies to