Specifies the type of a resource.
Namespace:
Aspose.Tasks
Assembly:
Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
SyntaxPublic Enumeration ResourceType
public enum class ResourceType
Members
| Member name | Value | Description |
---|
| Material | 0 |
Indicates Material resource type.
|
| Work | 1 |
Indicates Work resource type.
|
| Cost | 2 |
Indicates Cost resource type.
|
ExamplesShows how to work with resource types.
var project = new Project();
var work = project.Resources.Add("Work resource");
work.Set(Rsc.Type, ResourceType.Work);
var material = project.Resources.Add("Material resource");
material.Set(Rsc.Type, ResourceType.Material);
material.Set(Rsc.MaterialLabel, "kg");
var cost = project.Resources.Add("Cost resource");
cost.Set(Rsc.Type, ResourceType.Cost);
cost.Set(Rsc.Cost, 59.99m);
See Also