IAzAuthorizationStore::Delete method (azroles.h)
The Delete method deletes the policy store currently in use by the AzAuthorizationStore object.
HRESULT Delete(
[in, optional] VARIANT varReserved
);
[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.
When the Delete method is called, the AzAuthorizationStore object returns to an uninitialized state. The Initialize method can then be called to reinitialize the object.
მნიშვნელოვანი
All objects opened by clients on the policy store (for example, IAzApplication objects created using CreateApplication) must be released before you call the Delete method. If the Delete method is called on an AzAuthorizationStore object whose current policy store contains child objects, HRESULT_FROM_WIN32(ERROR_SERVER_HAS_OPEN_HANDLES) is returned.
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 |