VistaDB 6
VistaDB.Web Namespace / VistaDBRoleProvider Class / FindUsersInRole Method
The role to search in.
The user name to search for.


In This Topic
    FindUsersInRole Method
    In This Topic
    Gets an array of user names in a role where the user name contains the specified user name to match.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Function FindUsersInRole( _
       ByVal roleName As System.String, _
       ByVal usernameToMatch As System.String _
    ) As System.String()
    'Usage
     
    
    Dim instance As VistaDBRoleProvider
    Dim roleName As System.String
    Dim usernameToMatch As System.String
    Dim value() As System.String
     
    value = instance.FindUsersInRole(roleName, usernameToMatch)
    public override System.string[] FindUsersInRole( 
       System.string roleName,
       System.string usernameToMatch
    )

    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.
    Requirements

    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

    See Also