ResourceLeveler.LevelResources
Contents
[
Hide
]ResourceLeveler.LevelResources method
Levels tasks for the specified resources using the specified leveling options.
public static LevelingResult LevelResources(Project project, LevelingOptions options)
Parameter | Type | Description |
---|---|---|
project | Project | Project to apply resource leveling. |
options | LevelingOptions | Options which specifies how to level resources. |
Return Value
Object containing results of resource leveling.
Exceptions
exception | condition |
---|---|
ArgumentNullException | if parameter options is null. |
Examples
Shows how to level specific resource, customize leveling options and examine leveling algorithm messages.
var project = new Project(DataDir + "Software Development Plan.mpp");
var levelingOptions = new LevelingOptions();
levelingOptions.StartDate = new DateTime(2013, 3, 10);
levelingOptions.FinishDate = new DateTime(2013, 4, 30);
levelingOptions.Resources = new List<Resource> { project.Resources.GetById(7) };
levelingOptions.MessageLevel = MessageLevel.Information;
levelingOptions.MessageHandler = new LevelingMessageHandler();
ResourceLeveler.LevelResources(project, levelingOptions);
See Also
- class LevelingResult
- class Project
- class LevelingOptions
- class ResourceLeveler
- namespace Aspose.Tasks.Leveling
- assembly Aspose.Tasks