IAzTask::AddTask method (azroles.h)
The AddTask method adds the IAzTask object with the specified name to the task.
Syntax
HRESULT AddTask(
[in] BSTR bstrTask,
[in, optional] VARIANT varReserved
);
Parameters
[in] bstrTask
Name of the IAzTask object to add to the task.
[in, optional] varReserved
Reserved for future use.
Return value
If the method succeeds, it will return S_OK
. Any other HRESULT value indicates that the operation failed.
Remarks
This method allows the nesting of IAzTask objects within another IAzTask object.
You must call the Submit method to persist any changes made by this method.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | azroles.h |
Library | Azroles.lib |
DLL | Azroles.dll |
Redistributable | Windows Server 2003 Administration Tools Pack on Windows XP |