IAzTask::DeleteTask method (azroles.h)
The DeleteTask method removes the IAzTask object with the specified name from the task.
HRESULT DeleteTask(
[in] BSTR bstrTask,
[in, optional] VARIANT varReserved
);
[in] bstrTask
Name of the IAzTask object to remove from the task.
[in, optional] varReserved
Reserved for future use.
If the method succeeds, it will return S_OK
. Any other HRESULT value indicates that the operation failed.
If there are any IAzTask references to an IAzTask object that has been deleted from the cache, the IAzTask object can no longer be used. In C++, you must release references to deleted IAzTask objects by calling the IUnknown::Release method. In C# and Visual Basic, references to deleted objects are automatically released.
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 |