Class BuiltInProjectPropertyCollection

BuiltInProjectPropertyCollection class

Represents a collection of built-in project properties.

public sealed class BuiltInProjectPropertyCollection : 
    PropertyKeyedCollection<BuiltInProjectProperty>

Properties

NameDescription
Author { get; set; }Gets or sets the author of a project.
Category { get; set; }Gets or sets the category of a project.
Comments { get; set; }Gets or sets the comments of a project.
Company { get; set; }Gets or sets the company of a project.
Count { get; }
HyperlinkBase { get; set; }Gets or sets the hyperlink base of a project.
override IsReadOnly { get; }Gets a value indicating whether this collection is read-only; otherwise, false.
Item { get; }
Keywords { get; set; }Gets or sets the keywords of a project.
Manager { get; set; }Gets or sets the manager of a project.
Names { get; }
Subject { get; set; }Gets or sets the subject of a project.
Title { get; set; }Gets or sets the title of a project.

Methods

NameDescription
Add(BuiltInProjectProperty)
Contains(string)

Examples

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);
Console.WriteLine();

// 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());
    Console.WriteLine();
}

See Also