ContainsMember method

Determines whether a User or Group is a member of a specified Group, Member Set, or Custom Role.

Syntax


C++

HRESULT ContainsMember (
   IERUMember* pMember,

   VARIANT_BOOL ExpandGroups,

   VARIANT_BOOL* pRetVal)

Scripting languages

Boolean = Object.ContainsMember (
   pMember as IERUMember,

   ExpandGroups as Boolean)

Parameters


pMember

The member to look for in the Group, Member Set, or Custom Role.

ExpandGroups

Boolean indicating whether to expand subgroups to find the specified member.

Value

Description

TRUE

Expand Groups to show their membership

FALSE

Do not expand Groups to show their membership

 

pRetVal

Upon return, TRUE if pMember belongs to the Group, Member Set, or Custom Role, FALSE if not.

Return value


C++

The return code.

Scripting languages

Boolean. Returns TRUE if pMember is a member of the Group or Member Set, FALSE if not.

Remarks


If ExpandGroups is set to TRUE, all Groups contained by the Group, Member Set, or Custom Role are searched. Otherwise only the immediate members of the Group, Member Set, or Custom Role are searched.

Home

Applies to

IERUGroup

IERUMemberSet

IERUCustomRole


See also

Using Access Control and User Context