ITask::put_Depend method

Sets the dependent tasks.

Syntax

HRESULT put_Depend(
  [in] BSTR Val
);

Parameters

  • Val [in]
    A comma-separated list of task names.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Remarks

Typically, you use dependencies to break a large task into smaller subtasks. For example, if task A needs to finish before task B, which needs to finish before task C, then task B depends on A and task C depends on B. Task B will not run until A finishes, fails, or is canceled.

The method checks for circular dependencies.

The dependency is ignored if the task is specified in a command.

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

ITask

ITask::get_Depend