IAzApplication3::DeleteRoleAssignment method (azroles.h)

The DeleteRoleAssignment method removes the specified IAzRoleAssignment object from the IAzApplication3 object.

Syntax

HRESULT DeleteRoleAssignment(
  [in] BSTR bstrRoleAssignmentName
);

Parameters

[in] bstrRoleAssignmentName

A string that contains the name of the IAzRoleAssignment object to remove.

Return value

If the method succeeds, it returns S_OK.

If the method fails, it returns an error code. For a list of common error codes, see Common HRESULT Values.

Remarks

If any references to an IAzRoleAssignment object have been deleted from the cache, you can no longer use that object. In C++, you must release references to deleted IAzRoleAssignment 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