Asn.AssignmentOwner
Asn.AssignmentOwner field
The name of an assignment owner.
public static readonly Key<string, AsnKey> AssignmentOwner;
Examples
Shows how to read/write Asn.AssignmentOwner and Asn.AssignmentOwnerGuid properties.
var project = new Project();
var task = project.RootTask.Children.Add("Task 1");
task.Set(Tsk.Start, new DateTime(2000, 1, 3, 8, 0, 0));
task.Set(Tsk.Duration, project.GetDuration(8));
var resource = project.Resources.Add("Resource 1");
resource.Set(Rsc.Type, ResourceType.Work);
var assignment = project.ResourceAssignments.Add(task, resource);
assignment.Set(Asn.AssignmentOwner, "Assignment Owner");
assignment.Set(Asn.AssignmentOwnerGuid, "1d440f0c-7839-4802-af5f-4bb30e8b75ab");
Console.WriteLine("Assignment Owner: " + assignment.Get(Asn.AssignmentOwner));
Console.WriteLine("Assignment Owner GUID: " + assignment.Get(Asn.AssignmentOwnerGuid));
See Also
- struct Key<T,K>
- enum AsnKey
- class Asn
- namespace Aspose.Tasks
- assembly Aspose.Tasks