VistaDB 6
VistaDB.Web Namespace / VistaDBRoleProvider Class / AddUsersToRoles Method
A string array of user names to be added to the specified roles.
A string array of the role names to add the specified user names to.


In This Topic
    AddUsersToRoles Method
    In This Topic
    Adds the specified user names to the specified roles for the configured applicationName.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Sub AddUsersToRoles( _
       ByVal usernames() As System.String, _
       ByVal roleNames() As System.String _
    ) 
    'Usage
     
    
    Dim instance As VistaDBRoleProvider
    Dim usernames() As System.String
    Dim roleNames() As System.String
     
    instance.AddUsersToRoles(usernames, roleNames)
    public override void AddUsersToRoles( 
       System.string[] usernames,
       System.string[] roleNames
    )

    Parameters

    usernames
    A string array of user names to be added to the specified roles.
    roleNames
    A string array of the role names to add the specified user names to.
    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