IAzApplication3::OpenRoleDefinition method (azroles.h)

The OpenRoleDefinition method opens an IAzRoleDefinition object with the specified name.


HRESULT OpenRoleDefinition(
  BSTR              bstrRoleDefinitionName,
  IAzRoleDefinition **ppRoleDefinitions



A string that contains the name of the IAzRoleDefinition object to open.


The address of a pointer to the IAzRoleDefinition object that this method opens.

When you have finished using this IAzRoleDefinition object, release it by calling the IUnknown::Release method.

Return value

If the method succeeds, the method returns S_OK.

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


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