Click or drag to resize

ResourceType Enumeration

Specifies the type of a resource.

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public enum ResourceType
Members
  Member nameValueDescription
Material0 Indicates Material resource type.
Work1 Indicates Work resource type.
Cost2 Indicates 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