BuiltInProjectPropertyCollection Class

Represents a collection of built-in project properties.
Inheritance Hierarchy

Namespace:  Aspose.Tasks.Properties
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.10
public sealed class BuiltInProjectPropertyCollection : PropertyKeyedCollection<BuiltInProjectProperty>

The BuiltInProjectPropertyCollection type exposes the following members.

Public propertyCode exampleAuthor
Gets or sets the author of a project.
Public propertyCode exampleCategory
Gets or sets the category of a project.
Public propertyCode exampleComments
Gets or sets the comments of a project.
Public propertyCode exampleCompany
Gets or sets the company of a project.
Public propertyCode exampleCount
Gets the number of properties in the collection.
(Inherited from PropertyKeyedCollectionT.)
Public propertyCode exampleHyperlinkBase
Gets or sets the hyperlink base of a project.
Public propertyCode exampleIsReadOnly
Gets a value indicating whether this collection is read-only; otherwise, false.
(Overrides PropertyKeyedCollectionTIsReadOnly.)
Public propertyCode exampleItem
Gets the Property associated with the specified key.
(Inherited from PropertyKeyedCollectionT.)
Public propertyCode exampleKeywords
Gets or sets the keywords of a project.
Public propertyCode exampleManager
Gets or sets the manager of a project.
Public propertyCode exampleNames
Gets the collection of all property names.
(Inherited from PropertyKeyedCollectionT.)
Public propertyCode exampleSubject
Gets or sets the subject of a project.
Public propertyCode exampleTitle
Gets or sets the title of a project.
Shows how to read project builtin properties.
var project = new Project(DataDir + "ReadProjectInfo.mpp");

Console.WriteLine("Author: " + project.BuiltInProps.Author);
Console.WriteLine("Category: " + project.BuiltInProps.Category);
Console.WriteLine("Comments: " + project.BuiltInProps.Comments);
Console.WriteLine("Company: " + project.BuiltInProps.Company);
Console.WriteLine("HyperlinkBase: " + project.BuiltInProps.HyperlinkBase);
Console.WriteLine("IsReadOnly: " + project.BuiltInProps.IsReadOnly);
Console.WriteLine("Keywords: " + project.BuiltInProps.Keywords);
Console.WriteLine("Manager: " + project.BuiltInProps.Manager);
Console.WriteLine("Subject: " + project.BuiltInProps.Subject);
Console.WriteLine("Title: " + project.BuiltInProps.Title);

// iterate over built-in property collection
foreach (Property property in project.BuiltInProps)
    Console.WriteLine("Name: " + property.Name);
    Console.WriteLine("Value: " + property.Value);
    Console.WriteLine("Prop As String: " + property.ToString());
See Also