UserGroups Property
Visual Studio .NET 2003
Gets a collection of UserGroup objects stored in the project.
oUserGroups = Project.UserGroups
Return value
oUserGroups As UserGroups. A collection of all user groups in the project.
Remarks
Note that an Application Center Test project will always include a default user group, named "Default."
For a list of groups used in a particular test, see the Test.UserGroups property.
Examples
'''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Creates a new user group in the project for each
' name in the array of strings.
'
Sub SetUserGroups(oACTProject, arrUserGroups)
Dim strUserGroup
Dim lCount
For lCount = 0 To UBound(arrUserGroups)
strUserGroup = arrUserGroups(lCount)
oACTProject.UserGroups.Add(strUserGroup)
WScript.Echo("Added User Group: " & strUserGroup)
Next
End Sub
See Also
Project object | UserGroups object | Test.UserGroups property