ResourceAssignment Class |
Namespace: Aspose.Tasks
The ResourceAssignment type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Baselines |
Gets AssignmentBaselineCollection object.
The collection of baseline values associated with an assignment.
|
![]() ![]() | ExtendedAttributes |
Gets or sets an instance of the ExtendedAttributeCollection class for this object.
|
![]() ![]() | Guid |
Gets or sets unique identifier for this assignment.
|
![]() ![]() | ParentProject |
Gets parent project for this assignment.
|
![]() ![]() | TimephasedData |
Gets or sets the instance of TimephasedDataCollection class containing elements of TimephasedData class.
|
Name | Description | |
---|---|---|
![]() ![]() | Delete |
Deletes resource assignment from project assignments collection.
|
![]() ![]() | Equals(Object) |
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ObjectEquals(Object).) |
![]() ![]() | Equals(ResourceAssignment) |
Returns a value indicating whether this instance is equal to a specified instance of the ResourceAssignment class.
|
![]() | Finalize | (Inherited from Object.) |
![]() ![]() | GetT |
Returns the value to which the property is mapped in this container.
|
![]() ![]() | GetHashCode |
Returns a hash code value for the instance of the ResourceAssignment class.
(Overrides ObjectGetHashCode.) |
![]() ![]() | GetTimephasedData(DateTime, DateTime) |
Returns TimephasedDataCollection object with the instances of TimephasedData class within given start and end dates of AssignmentWork.
|
![]() ![]() | GetTimephasedData(DateTime, DateTime, TimephasedDataType) |
Returns the instance TimephasedDataCollection class containing instances of TimephasedData class within given start and end dates of specified TimephasedDataType.
|
![]() | GetType | (Inherited from Object.) |
![]() ![]() | MakeTPs |
Generates a list of time phased data.
|
![]() | MemberwiseClone | (Inherited from Object.) |
![]() ![]() | SetT |
Maps the specified property to the specified value in this container.
|
![]() ![]() | SplitTask |
Splits task into two parts.
|
![]() ![]() | TimephasedDataFromTaskDuration |
Generates list of time phased data based on the task duration and the scheduled start date.
|
![]() ![]() | ToString |
Returns short string representation of the instance of the ResourceAssignment class.
The exact details of the representation are unspecified and subject to change.
(Overrides ObjectToString.) |
var project = new Project(DataDir + "BudgetWorkAndCost.mpp"); var task = project.RootTask.Children.Add("Task"); task.Set(Tsk.Start, new DateTime(2020, 4, 2, 8, 0, 0)); task.Set(Tsk.Duration, project.GetDuration(1)); task.Set(Tsk.Finish, new DateTime(2020, 4, 2, 17, 0, 0)); var resource = project.Resources.Add("Resource"); var resourceAssignment = project.ResourceAssignments.Add(task, resource); resourceAssignment.Set(Asn.Start, new DateTime(2020, 4, 2, 8, 0, 0)); resourceAssignment.Set(Asn.Work, project.GetWork(1)); resourceAssignment.Set(Asn.Finish, new DateTime(2020, 4, 2, 17, 0, 0)); Console.WriteLine(resourceAssignment.Get(Asn.Start)); Console.WriteLine(resourceAssignment.Get(Asn.Work)); Console.WriteLine(resourceAssignment.Get(Asn.Finish));