IAzClientContext2::AddApplicationGroups method (azroles.h)

The AddApplicationGroups method adds the specified array of existing IAzApplicationGroup objects to the client context object.

Syntax

HRESULT AddApplicationGroups(
  [in] VARIANT varApplicationGroups
);

Parameters

[in] varApplicationGroups

The array of IAzApplicationGroup objects 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

The IAzApplicationGroup objects in the varApplicationGroups array must already exist in the authorization store.

The added roles are used in subsequent calls to the AccessCheck and GetRoles methods.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008, Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header azroles.h
Library Azroles.lib
DLL Azroles.dll

See also

AccessCheck

GetRoles

IAzClientContext2