IAzAuthorizationStore::DeleteApplication method (azroles.h)

The DeleteApplication method removes the IAzApplication object with the specified name from the AzAuthorizationStore object.

Syntax

HRESULT DeleteApplication(
  [in]           BSTR    bstrApplicationName,
  [in, optional] VARIANT varReserved
);

Parameters

[in] bstrApplicationName

Name of the IAzApplication object to delete.

[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

If the deleted IAzApplication object has child objects, those objects are deleted, as well. If there are any IAzApplication references to an IAzApplication object that has been deleted from the cache, the IAzApplication object can no longer be used. In C++, you must release references to deleted IAzApplication objects by calling the IUnknown::Release method. In C# and Visual Basic, references to deleted objects are automatically released.

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

See also

IAzApplication