Retrieving multiple project types with ReadProjectStatus

Unanswered Retrieving multiple project types with ReadProjectStatus

  • 16 kwietnia 2012 18:57
     
     

    Hi,

    I need to get a list of all projects, sub projects and master projects the server. I'm using the ReadProjectStatus PSI method (project.asmx). When using the following code I get the projects:

    projClient.ReadProjectStatus(Guid.Empty,ProectWS.DataStoreEnum.WorkingStore,string.Empty,(int)PSILibrary.Project.ProjectType.Project);

    Guid.Empty, ProjectWS.DataStoreEnum.WorkingStore

    but when I try to combine the call to get all projects, subs and masters I get nothing, not even an exception:

    projClient.ReadProjectStatus(Guid.Empty,ProectWS.DataStoreEnum.WorkingStore,string.Empty,(int)PSILibrary.Project.ProjectType.Project | (int)PSILibrary.Project.ProjectType.InsertedProject | (int)PSILibrary.Project.ProjectType.MasterProject);

    Am I doing something wrong?


    Id