Project.Get
Project.Get<T> method
Returns the value to which the property is mapped in this container.
public T Get<T>(Key<T, PrjKey> key)
Parameter | Description |
---|---|
T | the type of the mapped value. |
key | the specified property key. Prj for getting the property key. |
Return Value
the value to which the property is mapped in this container.
Examples
Shows how to check a project version.
var project = new Project(DataDir + "DetermineProjectVersion.mpp");
// Display project version
Console.WriteLine("Project Version : " + project.Get(Prj.SaveVersion));
Console.WriteLine("Last Saved : " + project.Get(Prj.LastSaved).ToShortDateString());
See Also
- struct Key<T,K>
- enum PrjKey
- class Project
- namespace Aspose.Tasks
- assembly Aspose.Tasks