ParentProject

Resource.ParentProject property

Gets parent project for this container.

public Project ParentProject { get; }

Examples

Shows how to use parent project of resource.

var project = new Project();
var resource = project.Resources.Add("Resource");

// set a work for the resource by using default project work time unit type.
resource.Set(Rsc.Work, resource.ParentProject.GetWork(1));

Console.WriteLine(resource.Get(Rsc.Work));

See Also