IAzRoleDefinition::DeleteRoleDefinition method (azroles.h)
The DeleteRoleDefinition method removes the IAzRoleDefinition object with the specified name from this IAzRoleDefinition object.
Syntax
HRESULT DeleteRoleDefinition(
[in] BSTR bstrRoleDefinition
);
Parameters
[in] bstrRoleDefinition
The name of the IAzRoleDefinition object to delete.
Return value
If the method succeeds, the method returns S_OK.
If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.
Remarks
If there are any references to an IAzRoleDefinition object that has been deleted from the cache, the IAzRoleDefinition object can no longer be used. In C++, you must release references to deleted IAzRoleDefinition objects by calling the IUnknown::Release method. In 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 2008 [desktop apps only] |
Target Platform | Windows |
Header | azroles.h |
DLL | Azroles.dll |