IAzApplication3::CreateRoleAssignment method

The CreateRoleAssignment method creates a new IAzRoleAssignment object with the specified name.

Syntax


HRESULT CreateRoleAssignment(
  [in]  BSTR              bstrRoleAssignmentName,
  [out] IAzRoleAssignment **ppRoleAssignment
);

Parameters

bstrRoleAssignmentName [in]

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

ppRoleAssignment [out]

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

When you have finished using this IAzRoleAssignment 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.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Azroles.h

DLL

Azroles.dll

IID

IID_IAzApplication3 is defined as 181c845e-7196-4a7d-ac2e-020c0bb7a303

 

 

Show: