Class Resource

Class Resource

Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)

Represents a resource in a project.

public class Resource : IEquatable<resource>

Inheritance

objectResource

Implements

IEquatable<resource>

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

ACWP

Gets or sets a value of ACWP.

[EntityField]
public double ACWP { get; set; }

Property Value

double

AccrueAt

Gets or sets a value of AccrueAt.

[EntityField]
public CostAccrualType AccrueAt { get; set; }

Property Value

CostAccrualType

ActiveDirectoryGuid

Gets or sets a value of ActiveDirectoryGuid.

[EntityField]
public string ActiveDirectoryGuid { get; set; }

Property Value

string

ActualCost

Gets or sets a value of ActualCost.

[EntityField]
public decimal ActualCost { get; set; }

Property Value

decimal

ActualOvertimeCost

Gets or sets a value of ActualOvertimeCost.

[EntityField]
public decimal ActualOvertimeCost { get; set; }

Property Value

decimal

ActualOvertimeWork

Gets or sets a value of ActualOvertimeWork.

[EntityField]
public Duration ActualOvertimeWork { get; set; }

Property Value

Duration

ActualOvertimeWorkProtected

Gets or sets a value of ActualOvertimeWorkProtected.

[EntityField]
public Duration ActualOvertimeWorkProtected { get; set; }

Property Value

Duration

ActualWork

Gets or sets a value of ActualWork.

[EntityField]
public Duration ActualWork { get; set; }

Property Value

Duration

ActualWorkProtected

Gets or sets a value of ActualWorkProtected.

[EntityField]
public Duration ActualWorkProtected { get; set; }

Property Value

Duration

AssignmentOwner

Gets or sets a value of AssignmentOwner.

[EntityField]
public string AssignmentOwner { get; set; }

Property Value

string

AssignmentOwnerGuid

Gets or sets a value of AssignmentOwnerGuid.

[EntityField]
public string AssignmentOwnerGuid { get; set; }

Property Value

string

Assignments

Gets a collection of resource assignments for this object.

public ResourceAssignmentCollection Assignments { get; }

Property Value

ResourceAssignmentCollection

AvailabilityPeriods

Gets a the instance of the Aspose.Tasks.AvailabilityPeriodCollection class. The collection of periods during which a resource is available.

public AvailabilityPeriodCollection AvailabilityPeriods { get; }

Property Value

AvailabilityPeriodCollection

AvailableFrom

Gets or sets a value of AvailableFrom.

[EntityField]
public DateTime AvailableFrom { get; set; }

Property Value

DateTime

AvailableTo

Gets or sets a value of AvailableTo.

[EntityField]
public DateTime AvailableTo { get; set; }

Property Value

DateTime

BCWP

Gets or sets a value of BCWP.

[EntityField]
public double BCWP { get; set; }

Property Value

double

BCWS

Gets or sets a value of BCWS.

[EntityField]
public double BCWS { get; set; }

Property Value

double

Baselines

Gets a BaselineCollection instance for this object. The baseline values for a resource.

public BaselineCollection Baselines { get; }

Property Value

BaselineCollection

BookingType

Gets or sets a value of BookingType.

[EntityField]
public BookingType BookingType { get; set; }

Property Value

BookingType

BudgetCost

Gets or sets a value of BudgetCost.

[EntityField]
public decimal BudgetCost { get; set; }

Property Value

decimal

BudgetWork

Gets or sets a value of BudgetWork.

[EntityField]
public Duration BudgetWork { get; set; }

Property Value

Duration

CV

Gets or sets a value of CV.

[EntityField]
public double CV { get; set; }

Property Value

double

Calendar

Gets or sets a value of Calendar.

[EntityField]
public Calendar Calendar { get; set; }

Property Value

Calendar

CanLevel

Gets or sets a value indicating whether CanLevel is set or not.

[EntityField]
public NullableBool CanLevel { get; set; }

Property Value

NullableBool

Code

Gets or sets a value of Code.

[EntityField]
public string Code { get; set; }

Property Value

string

Cost

Gets or sets a value of Cost.

[EntityField]
public decimal Cost { get; set; }

Property Value

decimal

CostCenter

Gets or sets a value of CostCenter.

[EntityField]
public string CostCenter { get; set; }

Property Value

string

CostPerUse

Gets or sets a value of CostPerUse.

[EntityField]
public decimal CostPerUse { get; set; }

Property Value

decimal

CostVariance

Gets or sets a value of CostVariance.

[EntityField]
public double CostVariance { get; set; }

Property Value

double

Created

Gets or sets a value of Created.

[EntityField]
public DateTime Created { get; set; }

Property Value

DateTime

EMailAddress

Gets or sets a value of EMailAddress.

[EntityField]
public string EMailAddress { get; set; }

Property Value

string

ExtendedAttributes

Gets the values of an extended attribute.

public ExtendedAttributeCollection ExtendedAttributes { get; }

Property Value

ExtendedAttributeCollection

Remarks

Two pieces of data are necessary - a pointer back to the extended attribute table which is specified either by the unique ID or the Field ID, and the value which is specified either with the value, or a pointer back to the value list.

Finish

Gets or sets a value of Finish.

[EntityField]
public DateTime Finish { get; set; }

Property Value

DateTime

Group

Gets or sets a value of Group.

[EntityField]
public string Group { get; set; }

Property Value

string

Guid

Gets or sets a value of Guid.

[EntityField]
public string Guid { get; set; }

Property Value

string

Hyperlink

Gets or sets the title or explanatory text of a hyperlink associated with a resource.

[EntityField]
public string Hyperlink { get; set; }

Property Value

string

HyperlinkAddress

Gets or sets the address for a hyperlink associated with a resource.

[EntityField]
public string HyperlinkAddress { get; set; }

Property Value

string

Remarks

The full address (Hyperlink Href in Microsoft Project) of the hyperlink is a concatenation of HyperlinkAddress and HyperlinkSubAddress.

HyperlinkSubAddress

Gets or sets the specific location in a document in a hyperlink associated with a resource.

[EntityField]
public string HyperlinkSubAddress { get; set; }

Property Value

string

Remarks

The full address (Hyperlink Href in Microsoft Project) of the hyperlink is a concatenation of HyperlinkAddress and HyperlinkSubAddress.

Id

Gets or sets a value of Id.

[EntityField]
public int Id { get; set; }

Property Value

int

Inactive

Gets or sets a value indicating whether Inactive is set or not.

[EntityField]
public NullableBool Inactive { get; set; }

Property Value

NullableBool

Initials

Gets or sets a value of Initials.

[EntityField]
public string Initials { get; set; }

Property Value

string

IsBudget

Gets or sets a value indicating whether IsBudget is set or not.

[EntityField]
public NullableBool IsBudget { get; set; }

Property Value

NullableBool

IsCostResource

Gets or sets a value indicating whether IsCostResource is set or not.

[EntityField]
public NullableBool IsCostResource { get; set; }

Property Value

NullableBool

IsEnterprise

Gets or sets a value indicating whether IsEnterprise is set or not.

[EntityField]
public NullableBool IsEnterprise { get; set; }

Property Value

NullableBool

IsGeneric

Gets or sets a value indicating whether IsGeneric is set or not.

[EntityField]
public NullableBool IsGeneric { get; set; }

Property Value

NullableBool

IsNull

Gets or sets a value indicating whether IsNull is set or not.

[EntityField]
public NullableBool IsNull { get; set; }

Property Value

NullableBool

IsRoot

Gets the flag indicating whether resource is a root resource. Root resource is a special resource which is intended to support internals of MS Project’s formats and is not intended to be used directly from the user’s code.

public virtual bool IsRoot { get; }

Property Value

bool

IsTeamAssignmentPool

Gets or sets a value indicating whether IsTeamAssignmentPool is set or not.

[EntityField]
public bool IsTeamAssignmentPool { get; set; }

Property Value

bool

MaterialLabel

Gets or sets a value of MaterialLabel.

[EntityField]
public string MaterialLabel { get; set; }

Property Value

string

MaxUnits

Gets or sets a value of MaxUnits.

[EntityField]
public double MaxUnits { get; set; }

Property Value

double

Name

Gets or sets a value of Name.

[EntityField]
public string Name { get; set; }

Property Value

string

NotesRTF

Gets or sets a value of NotesRTF.

[EntityField]
public string NotesRTF { get; set; }

Property Value

string

NotesText

Gets or sets a value of NotesText.

[EntityField]
public string NotesText { get; set; }

Property Value

string

OutlineCode

Gets an OutlineCodeCollection object. The value of an outline code.

public OutlineCodeCollection OutlineCode { get; }

Property Value

OutlineCodeCollection

Remarks

Two pieces of data are necessary - a pointer to the outline code table that is specified by the FieldID, and the value that is specified either by the ValueID or ValueGUID pointer to the value list.

Overallocated

Gets or sets a value indicating whether Overallocated is set or not.

[EntityField]
public NullableBool Overallocated { get; set; }

Property Value

NullableBool

OvertimeCost

Gets or sets a value of OvertimeCost.

[EntityField]
public decimal OvertimeCost { get; set; }

Property Value

decimal

OvertimeRate

Gets or sets a value of OvertimeRate.

[EntityField]
public decimal OvertimeRate { get; set; }

Property Value

decimal

OvertimeRateFormat

Gets or sets a value of OvertimeRateFormat.

[EntityField]
public RateFormatType OvertimeRateFormat { get; set; }

Property Value

RateFormatType

OvertimeWork

Gets or sets a value of OvertimeWork.

[EntityField]
public Duration OvertimeWork { get; set; }

Property Value

Duration

ParentProject

Gets parent project for this container.

public Project ParentProject { get; }

Property Value

Project

PeakUnits

Gets or sets a value of PeakUnits.

[EntityField]
public double PeakUnits { get; set; }

Property Value

double

PercentWorkComplete

Gets or sets a value of PercentWorkComplete.

[EntityField]
public int PercentWorkComplete { get; set; }

Property Value

int

Phonetics

Gets or sets a value of Phonetics.

[EntityField]
public string Phonetics { get; set; }

Property Value

string

Rates

Gets a the instance of the Aspose.Tasks.RateCollection class for this object. The collection of periods and rates associated with each one.

public RateCollection Rates { get; }

Property Value

RateCollection

RegularWork

Gets or sets a value of RegularWork.

[EntityField]
public Duration RegularWork { get; set; }

Property Value

Duration

RemainingCost

Gets or sets a value of RemainingCost.

[EntityField]
public decimal RemainingCost { get; set; }

Property Value

decimal

RemainingOvertimeCost

Gets or sets a value of RemainingOvertimeCost.

[EntityField]
public decimal RemainingOvertimeCost { get; set; }

Property Value

decimal

RemainingOvertimeWork

Gets or sets a value of RemainingOvertimeWork.

[EntityField]
public Duration RemainingOvertimeWork { get; set; }

Property Value

Duration

RemainingWork

Gets or sets a value of RemainingWork.

[EntityField]
public Duration RemainingWork { get; set; }

Property Value

Duration

SV

Gets or sets a value of SV.

[EntityField]
public double SV { get; set; }

Property Value

double

StandardRate

Gets or sets a value of StandardRate.

[EntityField]
public decimal StandardRate { get; set; }

Property Value

decimal

StandardRateFormat

Gets or sets a value of StandardRateFormat.

[EntityField]
public RateFormatType StandardRateFormat { get; set; }

Property Value

RateFormatType

Start

Gets or sets a value of Start.

[EntityField]
public DateTime Start { get; set; }

Property Value

DateTime

TimephasedData

Gets or sets an instance of Aspose.Tasks.TimephasedDataCollection class for this object.

public TimephasedDataCollection TimephasedData { get; set; }

Property Value

TimephasedDataCollection

Remarks

Reading supported for XML format only.

Type

Gets or sets a value of Type.

[EntityField]
public ResourceType Type { get; set; }

Property Value

ResourceType

Uid

Gets or sets a value of Uid.

[EntityField]
public int Uid { get; set; }

Property Value

int

WindowsUserAccount

Gets or sets a value of WindowsUserAccount.

[EntityField]
public string WindowsUserAccount { get; set; }

Property Value

string

Work

Gets or sets a value of Work.

[EntityField]
public Duration Work { get; set; }

Property Value

Duration

WorkVariance

Gets or sets a value of WorkVariance.

[EntityField]
public double WorkVariance { get; set; }

Property Value

double

Workgroup

Gets or sets a value of Workgroup.

[EntityField]
public WorkGroupType Workgroup { get; set; }

Property Value

WorkGroupType

Methods

Delete()

Deletes a resource and its assignments from project.

public void Delete()

Equals(Resource)

Returns a value indicating whether this instance is equal to a specified instance of the Aspose.Tasks.Resource class.

public bool Equals(Resource other)

Parameters

other Resource

The specified instance of the Aspose.Tasks.Resource class to compare with this instance.

Returns

bool

True if the specified instance of the Aspose.Tasks.Resource class has the same Uid value as this instance; otherwise, false.

Equals(object)

Returns a value indicating whether this instance is equal to a specified object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with this instance.

Returns

bool

True if the specified object is a Resource that has the same Uid value as this instance; otherwise, false.

Get<t>(Key<t, rsckey="">)

Returns the value to which the property is mapped in this container.

public T Get<t>(Key<t, rsckey=""> key)

Parameters

key Key<t, rsckey="">

the specified property key. Aspose.Tasks.Rsc for getting the property key.

Returns

T

the value to which the property is mapped in this container.

Type Parameters

T

the type of the mapped value.

GetHashCode()

Returns a hash code value for the instance of the Aspose.Tasks.Resource class.

public override int GetHashCode()

Returns

int

returns a hash code value for this object.

GetTimephasedData(DateTime, DateTime, TimephasedDataType)

Returns an instance of the Aspose.Tasks.TimephasedDataCollection class for this object with the Aspose.Tasks.Resource.TimephasedData values within given start and end dates of specified Aspose.Tasks.TimephasedDataType.

public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end, TimephasedDataType timephasedType)

Parameters

start DateTime

The start date for the time phased data.

end DateTime

The end date for the time phased data.

timephasedType TimephasedDataType

The type of time phased data (Aspose.Tasks.TimephasedDataType).

Returns

TimephasedDataCollection

List of Aspose.Tasks.Resource.TimephasedData.

GetTimephasedData(DateTime, DateTime)

Returns Aspose.Tasks.TimephasedDataCollection for this object with Aspose.Tasks.Resource.TimephasedDatavalues within given start and end dates.

public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end)

Parameters

start DateTime

The start date for the time phased data.

end DateTime

The end date for the time phased data.

Returns

TimephasedDataCollection

List of Aspose.Tasks.TimephasedData.

Set<t>(Key<t, rsckey="">, T)

Maps the specified property to the specified value in this container.

public void Set<t>(Key<t, rsckey=""> key, T val)

Parameters

key Key<t, rsckey="">

the specified property key. Aspose.Tasks.Rsc for getting the property key.

val T

the value.

Type Parameters

T

the type of the mapped value.

Set(Key<datetime, rsckey="">, DateTime)

Maps the specified property to the specified value in this container.

public void Set(Key<datetime, rsckey=""> key, DateTime val)

Parameters

key Key<DateTime, RscKey&gt;

the specified property key. Aspose.Tasks.Rsc for getting the property key.

val DateTime

the value.

ToString()

Returns short string representation of the instance of the Aspose.Tasks.Resource class. The exact details of the representation are unspecified and subject to change.

public override string ToString()

Returns

string

short string which represents resource object. </datetime,></datetime,></t,></t,></t,></t></t,></t,></t,></t></resource>