Class Asn

Asn class

Represents properties of ResourceAssignment object.

public static class Asn

Fields

NameDescription
static readonly ActualCostThe actual cost incurred on an assignment.
static readonly ActualFinishThe actual finish date of an assignment.
static readonly ActualOvertimeCostThe actual overtime cost incurred on an assignment.
static readonly ActualOvertimeWorkThe actual amount of an overtime work incurred on an assignment.
static readonly ActualOvertimeWorkProtectedThe duration through which actual work is protected.
static readonly ActualStartThe actual start date of an assignment.
static readonly ActualWorkThe actual amount of a work incurred on an assignment.
static readonly ActualWorkProtectedThe duration through which actual overtime work is protected.
static readonly ACWPThe actual cost of a work performed on an assignment to-date.
static readonly AssignmentOwnerThe name of an assignment owner.
static readonly AssignmentOwnerGuidThe globally unique identifier of an assignment owner.
static readonly BCWPThe budgeted cost of a work performed on assignment to-date.
static readonly BCWSThe budgeted cost of a work on assignment.
static readonly BookingTypeThe booking type of an assignment.
static readonly BudgetCostThe budgeted cost of resources on an assignment.
static readonly BudgetWorkThe budgeted work amount for a work or material resources on an assignment.
static readonly ConfirmedDetermines whether a resource has accepted all of its assignments.
static readonly CostThe projected or scheduled cost of an assignment.
static readonly CostRateTableTypeThe cost rate table used for this assignment.
static readonly CostVarianceThe difference between the baseline cost and total cost for an assignment.
static readonly CreatedThe date that the assignment was created.
static readonly CVThe earned value cost variance. CV is the difference between the assignment’s BCWP (budgeted cost of work performed) and ACWP (actual cost of work performed).
static readonly DelayThe delay of an assignment.
static readonly FinishThe scheduled finish date of an assignment.
static readonly FinishVarianceThe variance of an assignment finish date from a baseline finish date.
static readonly FixedMaterialDetermines whether the consumption of an assigned material resource occurs in a single, fixed amount.
static readonly HasFixedRateUnitsDetermines whether the Units have Fixed Rate.
static readonly HyperlinkThe title or explanatory text of a hyperlink associated with an assignment.
static readonly HyperlinkAddressThe address for a hyperlink associated with assignment.
static readonly HyperlinkSubAddressThe specific location in a document in a hyperlink associated with an assignment.
static readonly LevelingDelayThe delay caused by leveling.
static readonly LinkedFieldsDetermines whether the Project is linked to another OLE object.
static readonly MilestoneDetermines whether the assignment is a milestone.
static readonly NotesRTFThe text notes in RTF format. Supported for MPP formats only.
static readonly NotesTextNotes’ plain text extracted from RTF data.
static readonly OverallocatedDetermines whether the assignment is over-allocated.
static readonly OvertimeCostThe sum of the actual and remaining overtime cost of an assignment.
static readonly OvertimeWorkThe scheduled overtime work of an assignment.
static readonly PeakUnitsThe maximum number of units that a resource is assigned for a task.
static readonly PercentWorkCompleteThe amount of a work completed on an assignment.
static readonly RateScaleThe time unit for the usage rate of the material resource assignment. Returns 0 if not defined.
static readonly RegularWorkThe amount of a non-overtime work scheduled for an assignment.
static readonly RemainingCostThe remaining projected cost of completing an assignment.
static readonly RemainingOvertimeCostThe remaining projected overtime cost of completing an assignment.
static readonly RemainingOvertimeWorkThe remaining overtime work scheduled to complete an assignment.
static readonly RemainingWorkThe remaining work scheduled to complete an assignment.
static readonly ResourceThe resource assigned to a task.
static readonly ResponsePendingDetermines whether the response has been received for a TeamAssign message.
static readonly ResumeThe date when assignment is resumed.
static readonly StartThe scheduled start date of an assignment.
static readonly StartVarianceThe variance of an assignment start date from a baseline start date.
static readonly StopThe date when assignment is stopped.
static readonly SummaryDetermines whether the task is a summary task.
static readonly SVThe earned value schedule variance, through the project status date. Schedule variance (SV) is the difference between the BCWP and the BCWS.
static readonly TaskThe task to which a resource is assigned.
static readonly UidThe unique identifier of an assignment.
static readonly UnitsThe number of units for an assignment.
static readonly UpdateNeededDetermines whether the resource assigned to a task needs to be updated as to the status of the task.
static readonly VACThe difference between baseline cost and total cost.
static readonly WorkThe amount of scheduled work for an assignment.
static readonly WorkContourThe work contour of an assignment.
static readonly WorkVarianceThe difference between baseline work of a task and the currently scheduled work.

Examples

Shows how to read/write Asn.Uid property.

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.Uid, 30);

Console.WriteLine("UID: " + assignment.Get(Asn.Uid));

See Also