IAzTask2::RoleAssignments method

The RoleAssignments method returns a collection of the role assignments associated with this task.

Syntax


HRESULT RoleAssignments(
  [in]  BSTR               bstrScopeName,
  [in]  VARIANT_BOOL       bRecursive,
  [out] IAzRoleAssignments **ppRoleAssignments
);

Parameters

bstrScopeName [in]

The name of the scope in which to check for role assignments. If the value of this parameter is an empty string, the method checks for role assignments at the application level.

bRecursive [in]

TRUE if the method checks all scopes within the application; otherwise, FALSE. This parameter is ignored if the value of the bstrScopeName parameter is not NULL.

ppRoleAssignments [out]

The address of a pointer to an IAzRoleAssignments interface that represents the collection of IAzRoleAssignment objects associated with this task.

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

IDL

Azroles.idl

IID

IID_IAzTask2 is defined as 03a9a5ee-48c8-4832-9025-aad503c46526

 

 

Show: