Project.CustomProps
Project.CustomProps property
Gets project’s custom properties collection.
public CustomProjectPropertyCollection CustomProps { get; }
Examples
Shows how to read project meta properties (obsolete API).
var project = new Project(DataDir + "ReadProjectInfo.mpp");
// custom properties are available through the typed collection
foreach (var property in project.CustomProps)
{
Console.WriteLine(property.Type);
Console.WriteLine(property.Name);
Console.WriteLine(property.Value);
}
// built-in properties are available directly
Console.WriteLine(project.BuiltInProps.Author);
Console.WriteLine(project.BuiltInProps.Title);
// or as an item of built-in property collection
foreach (var property in project.BuiltInProps)
{
Console.WriteLine(property.Name);
Console.WriteLine(property.Value);
}
See Also
- class CustomProjectPropertyCollection
- class Project
- namespace Aspose.Tasks
- assembly Aspose.Tasks