VistaDB 6
VistaDB.Web Namespace / VistaDBRoleProvider Class / GetRolesForUser Method
The user to return a list of roles for.


In This Topic
    GetRolesForUser Method
    In This Topic
    Gets a list of the roles that a specified user is in for the configured applicationName.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Function GetRolesForUser( _
       ByVal username As System.String _
    ) As System.String()
    'Usage
     
    
    Dim instance As VistaDBRoleProvider
    Dim username As System.String
    Dim value() As System.String
     
    value = instance.GetRolesForUser(username)
    public override System.string[] GetRolesForUser( 
       System.string username
    )

    Parameters

    username
    The user to return a list of roles for.

    Return Value

    A string array containing the names of all the roles that the specified user is in for the configured applicationName.
    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