GetMembersByRole method
Returns the members of an eRoom who have the specified role. 
Syntax
 
C++
HRESULT GetMembersByRole 
 ( 
   LONG MemberFlags, 
   ERMemberRole Role, 
   IERUCollection** ppMembers) 
Scripting languages
Set Collection = Object.GetMembersByRole ( 
   MemberFlags 
 as Long, 
   Role 
 as ERMemberRole)  |  
 
Parameters
 
MemberFlags
Formats or filters the collection of members. For further 
 information on Member Flags, see ERUMemberFlag. 
 
Note that the flag erMemFlagSortedLastNameFirst 
 is not supported by the GetMembers method of the interface IERUGroup. 
  
Role
The role whose members you would like to retrieve. 
ppMembers
A collection of eRoom members who have the specified role. 
Return value
 
C++
The return code.  | 
Scripting languages:
An IERUCollection interface 
 pointer to a collection of IERUMember 
 interface pointers.  |  
  | 
 Home 
 
Applies to 
IERURoomMembership 
 
 
See also 
Member groups  |