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)
ParameterDescription
Tthe type of the mapped value.
keythe 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