IAzRoleAssignment::AddRoleDefinition method

The AddRoleDefinition method adds the specified IAzRoleDefinition object to this IAzRoleAssignment object.

Syntax


HRESULT AddRoleDefinition(
  [in] BSTR bstrRoleDefinition
);

Parameters

bstrRoleDefinition [in]

The name of the IAzRoleDefinition to add.

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

You must call the Submit method to persist any changes made by this method.

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: