The TaskName property specifies the name of the task to execute.
object.TaskName [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | Name of the task to execute |
String
Read/write
HRESULT GetTaskName(BSTR *pRetVal);
HRESULT SetTaskName(BSTR NewValue);
The TaskName property is the link between the Task object and the step that contains it. Typically, set:
Step2.TaskName = Task.Name