ITrkSession.AddProject (method)

method AddProject
Syntax: object.AddProject ProjectName, UserID, Password
Parameters:
ProjectName As String -

Project Name
UserID As String -

User ID
Password As String -

Password
Description:
The AddProject method will specify the project for which the user has permissions set.

Example:

Dim oTrkItemAgent As Object
Dim oTrkSession As Object
Dim oTrkItems As Object
Set oTrkItemAgent = CreateObject("Tracker.TrkItemAgent")
Set oTrkSession = CreateObject("Tracker.TrkSession")
oTrkSession.AddProject ProjectName, "ADMINISTRATOR", ""
oTrkItemAgent.SessionId = oTrkSession.SessionId
oTrkItemAgent.Execute oTrkItems