IAzClientContext2::AddApplicationGroups method

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

Syntax


HRESULT AddApplicationGroups(
  [in] VARIANT varApplicationGroups
);

Parameters

varApplicationGroups [in]

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008, Windows Server 2003 with SP1 [desktop apps only]

Header

Azroles.h

Library

Azroles.lib

DLL

Azroles.dll

IID

IID_IAzClientContext2 is defined as 2B0C92B8-208A-488A-8F81-E4EDB22111CD

See also

IAzClientContext2
AccessCheck
GetRoles

 

 

Show: