ProjectServerManager Class |
Namespace: Aspose.Tasks
The ProjectServerManager type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | ProjectServerManager |
Initializes a new instance of the ProjectServerManager class.
|
Name | Description | |
---|---|---|
![]() ![]() | CreateNewProject(Project) |
Creates new project in Project Server\Project Online instance using default save options.
|
![]() ![]() | CreateNewProject(Project, ProjectServerSaveOptions) |
Creates new project in Project Server\Project Online instance using the specified save options.
|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() ![]() | GetProject |
Gets the project with the specified guid from the Project Online account \ Project Server instance.
|
![]() ![]() | GetProjectList |
Gets the list of projects from 'Working' store of the current Project Online account \ Project Server instance.
|
![]() ![]() | GetProjectRawData |
Gets the project's binary data for troubleshooting purposes.
|
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
![]() ![]() | UpdateProject(Project) |
Updates existing project in Project Server\Project Online instance using default save options. The existing project will be overwritten.
|
![]() ![]() | UpdateProject(Project, ProjectServerSaveOptions) |
Updates existing project in Project Server\Project Online instance using the specified save options. The existing project will be overwritten.
|
Name | Description | |
---|---|---|
![]() ![]() | ExecutingWebRequest |
An event that is raised when the web request is sent to Project Server's web API.
|
try { const string sharepointDomainAddress = "https://contoso.sharepoint.com/sites/pwa"; const string UserName = "admin@contoso.onmicrosoft.com"; const string Password = "MyPassword"; var credentials = new ProjectServerCredentials(sharepointDomainAddress, UserName, Password); var project = new Project(DataDir + @"Project1.mpp"); var manager = new ProjectServerManager(credentials); var options = new ProjectServerSaveOptions { Timeout = TimeSpan.FromSeconds(10) }; manager.CreateNewProject(project, options); } catch (ProjectOnlineException ex) { Console.WriteLine(ex.Message); }