IAzScope2::CreateRoleDefinition method (azroles.h)

The CreateRoleDefinition method creates a new IAzRoleDefinition object with the specified name in this scope.


HRESULT CreateRoleDefinition(
  [in]  BSTR              bstrRoleDefinitionName,
  [out] IAzRoleDefinition **ppRoleDefinitions


[in] bstrRoleDefinitionName

A string that contains the name of the new IAzRoleDefinition object.

[out] ppRoleDefinitions

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

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

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.


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