IAzRoleAssignment::DeleteRoleDefinition method

The DeleteRoleDefinition method removes the IAzRoleDefinition object with the specified name from this IAzRoleAssignment object.

Syntax


HRESULT DeleteRoleDefinition(
  [in] BSTR bstrRoleDefinition
);

Parameters

bstrRoleDefinition [in]

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Azroles.h

DLL

Azroles.dll

 

 

Show: