ResourceType

ResourceType enumeration

Specifies the type of a resource.

public enum ResourceType

Values

NameValueDescription
Material0Indicates Material resource type.
Work1Indicates Work resource type.
Cost2Indicates Cost resource type.

Examples

Shows how to work with resource types.

var project = new Project();

// add a work resource
var work = project.Resources.Add("Work resource");
work.Set(Rsc.Type, ResourceType.Work);

// add a material resource
var material = project.Resources.Add("Material resource");
material.Set(Rsc.Type, ResourceType.Material);
material.Set(Rsc.MaterialLabel, "kg");

// add a material resource
var cost = project.Resources.Add("Cost resource");
cost.Set(Rsc.Type, ResourceType.Cost);
cost.Set(Rsc.Cost, 59.99m);

// work with resources: create tasks, assign resources and so on...

See Also