IAzRoleDefinition::RoleAssignments method (azroles.h)

The RoleAssignments function retrieves a collection of IAzRoleAssignment objects that represent the role assignments associated with this IAzRoleDefinition object.

This property is read-only.

Syntax

HRESULT RoleAssignments(
  BSTR               bstrScopeName,
  VARIANT_BOOL       bRecursive,
  IAzRoleAssignments **ppRoleAssignments
);

Parameters

bstrScopeName

Provides a scope name to include in the search for IAzRoleAssignment objects. If this parameter is NULL, the search is performed in the global scope.

bRecursive

Indicates if the search for IAzRoleAssignment objects should be performed recursively.

ppRoleAssignments

The collection of IAzRoleAssignment objects that represent the role assignments associated with this IAzRoleDefinition object.

Return value

If the method succeeds, it will return S_OK. Any other HRESULT value indicates that the operation failed.

Requirements

Requirement Value
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

See also

IAzRoleAssignment

IAzRoleDefinition