ProjectInfo Class

Brief info about the published project available on Project Online.
Inheritance Hierarchy
SystemObject
  Aspose.TasksProjectInfo

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public sealed class ProjectInfo

The ProjectInfo type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleProjectInfo
Initializes a new instance of the ProjectInfo class.
Properties
  NameDescription
Public propertyCode exampleCreatedDate
Gets the date and time when the project was created.
Public propertyCode exampleDescription
Gets the description of the project.
Public propertyCode exampleId
Gets the unique identifier of the project.
Public propertyCode exampleIsCheckedOut
Gets a value indicating whether the project is checked out.
Public propertyCode exampleLastPublishedDate
Gets the most recent date when the project was published.
Public propertyCode exampleLastSavedDate
Gets the most recent date when the project was saved.
Public propertyCode exampleName
Gets the name of the project.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples
Shows how to read information about projects from Project Online.
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 reader = new ProjectServerManager(credentials);
IEnumerable<ProjectInfo> list = reader.GetProjectList();

// read project's information
Console.WriteLine("Print information about projects:");
foreach (var info in list)
{
    Console.WriteLine("Id: " + info.Id);
    Console.WriteLine("Name: " + info.Name);
    Console.WriteLine("Description: " + info.Description);
    Console.WriteLine("Created Date: " + info.CreatedDate);
    Console.WriteLine("Last Saved Date: " + info.LastSavedDate);
    Console.WriteLine("Last Published Date: " + info.LastPublishedDate);
    Console.WriteLine("Is Checked Out: " + info.IsCheckedOut);
}
See Also