Parameters
- roleName
- The role to search in.
- usernameToMatch
- The user name to search for.
Return Value
A string array containing the names of all the users where the user name matches usernameToMatch and the user is a member of the specified role.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2