Class Resource
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Represents a resource in a project.
public class Resource : IEquatable<resource>
Inheritance
Implements
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
AccrueAt
Gets or sets a value of AccrueAt.
[EntityField]
public CostAccrualType AccrueAt { get; set; }
Property Value
ActiveDirectoryGuid
Gets or sets a value of ActiveDirectoryGuid.
[EntityField]
public string ActiveDirectoryGuid { get; set; }
Property Value
ActualCost
Gets or sets a value of ActualCost.
[EntityField]
public decimal ActualCost { get; set; }
Property Value
ActualOvertimeCost
Gets or sets a value of ActualOvertimeCost.
[EntityField]
public decimal ActualOvertimeCost { get; set; }
Property Value
ActualOvertimeWork
Gets or sets a value of ActualOvertimeWork.
[EntityField]
public Duration ActualOvertimeWork { get; set; }
Property Value
ActualOvertimeWorkProtected
Gets or sets a value of ActualOvertimeWorkProtected.
[EntityField]
public Duration ActualOvertimeWorkProtected { get; set; }
Property Value
ActualWork
Gets or sets a value of ActualWork.
[EntityField]
public Duration ActualWork { get; set; }
Property Value
ActualWorkProtected
Gets or sets a value of ActualWorkProtected.
[EntityField]
public Duration ActualWorkProtected { get; set; }
Property Value
AssignmentOwner
Gets or sets a value of AssignmentOwner.
[EntityField]
public string AssignmentOwner { get; set; }
Property Value
AssignmentOwnerGuid
Gets or sets a value of AssignmentOwnerGuid.
[EntityField]
public string AssignmentOwnerGuid { get; set; }
Property Value
Assignments
Gets a collection of resource assignments for this object.
public ResourceAssignmentCollection Assignments { get; }
Property Value
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
AvailableFrom
Gets or sets a value of AvailableFrom.
[EntityField]
public DateTime AvailableFrom { get; set; }
Property Value
AvailableTo
Gets or sets a value of AvailableTo.
[EntityField]
public DateTime AvailableTo { get; set; }
Property Value
BCWP
Gets or sets a value of BCWP.
[EntityField]
public double BCWP { get; set; }
Property Value
BCWS
Gets or sets a value of BCWS.
[EntityField]
public double BCWS { get; set; }
Property Value
Baselines
Gets a BaselineCollection instance for this object. The baseline values for a resource.
public BaselineCollection Baselines { get; }
Property Value
BookingType
Gets or sets a value of BookingType.
[EntityField]
public BookingType BookingType { get; set; }
Property Value
BudgetCost
Gets or sets a value of BudgetCost.
[EntityField]
public decimal BudgetCost { get; set; }
Property Value
BudgetWork
Gets or sets a value of BudgetWork.
[EntityField]
public Duration BudgetWork { get; set; }
Property Value
CV
Gets or sets a value of CV.
[EntityField]
public double CV { get; set; }
Property Value
Calendar
Gets or sets a value of Calendar.
[EntityField]
public Calendar Calendar { get; set; }
Property Value
CanLevel
Gets or sets a value indicating whether CanLevel is set or not.
[EntityField]
public NullableBool CanLevel { get; set; }
Property Value
Code
Gets or sets a value of Code.
[EntityField]
public string Code { get; set; }
Property Value
Cost
Gets or sets a value of Cost.
[EntityField]
public decimal Cost { get; set; }
Property Value
CostCenter
Gets or sets a value of CostCenter.
[EntityField]
public string CostCenter { get; set; }
Property Value
CostPerUse
Gets or sets a value of CostPerUse.
[EntityField]
public decimal CostPerUse { get; set; }
Property Value
CostVariance
Gets or sets a value of CostVariance.
[EntityField]
public double CostVariance { get; set; }
Property Value
Created
Gets or sets a value of Created.
[EntityField]
public DateTime Created { get; set; }
Property Value
EMailAddress
Gets or sets a value of EMailAddress.
[EntityField]
public string EMailAddress { get; set; }
Property Value
ExtendedAttributes
Gets the values of an extended attribute.
public ExtendedAttributeCollection ExtendedAttributes { get; }
Property Value
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
Group
Gets or sets a value of Group.
[EntityField]
public string Group { get; set; }
Property Value
Guid
Gets or sets a value of Guid.
[EntityField]
public string Guid { get; set; }
Property Value
Hyperlink
Gets or sets the title or explanatory text of a hyperlink associated with a resource.
[EntityField]
public string Hyperlink { get; set; }
Property Value
HyperlinkAddress
Gets or sets the address for a hyperlink associated with a resource.
[EntityField]
public string HyperlinkAddress { get; set; }
Property Value
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
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
Inactive
Gets or sets a value indicating whether Inactive is set or not.
[EntityField]
public NullableBool Inactive { get; set; }
Property Value
Initials
Gets or sets a value of Initials.
[EntityField]
public string Initials { get; set; }
Property Value
IsBudget
Gets or sets a value indicating whether IsBudget is set or not.
[EntityField]
public NullableBool IsBudget { get; set; }
Property Value
IsCostResource
Gets or sets a value indicating whether IsCostResource is set or not.
[EntityField]
public NullableBool IsCostResource { get; set; }
Property Value
IsEnterprise
Gets or sets a value indicating whether IsEnterprise is set or not.
[EntityField]
public NullableBool IsEnterprise { get; set; }
Property Value
IsGeneric
Gets or sets a value indicating whether IsGeneric is set or not.
[EntityField]
public NullableBool IsGeneric { get; set; }
Property Value
IsNull
Gets or sets a value indicating whether IsNull is set or not.
[EntityField]
public NullableBool IsNull { get; set; }
Property Value
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
IsTeamAssignmentPool
Gets or sets a value indicating whether IsTeamAssignmentPool is set or not.
[EntityField]
public bool IsTeamAssignmentPool { get; set; }
Property Value
MaterialLabel
Gets or sets a value of MaterialLabel.
[EntityField]
public string MaterialLabel { get; set; }
Property Value
MaxUnits
Gets or sets a value of MaxUnits.
[EntityField]
public double MaxUnits { get; set; }
Property Value
Name
Gets or sets a value of Name.
[EntityField]
public string Name { get; set; }
Property Value
NotesRTF
Gets or sets a value of NotesRTF.
[EntityField]
public string NotesRTF { get; set; }
Property Value
NotesText
Gets or sets a value of NotesText.
[EntityField]
public string NotesText { get; set; }
Property Value
OutlineCode
Gets an OutlineCodeCollection object. The value of an outline code.
public OutlineCodeCollection OutlineCode { get; }
Property Value
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
OvertimeCost
Gets or sets a value of OvertimeCost.
[EntityField]
public decimal OvertimeCost { get; set; }
Property Value
OvertimeRate
Gets or sets a value of OvertimeRate.
[EntityField]
public decimal OvertimeRate { get; set; }
Property Value
OvertimeRateFormat
Gets or sets a value of OvertimeRateFormat.
[EntityField]
public RateFormatType OvertimeRateFormat { get; set; }
Property Value
OvertimeWork
Gets or sets a value of OvertimeWork.
[EntityField]
public Duration OvertimeWork { get; set; }
Property Value
ParentProject
Gets parent project for this container.
public Project ParentProject { get; }
Property Value
PeakUnits
Gets or sets a value of PeakUnits.
[EntityField]
public double PeakUnits { get; set; }
Property Value
PercentWorkComplete
Gets or sets a value of PercentWorkComplete.
[EntityField]
public int PercentWorkComplete { get; set; }
Property Value
Phonetics
Gets or sets a value of Phonetics.
[EntityField]
public string Phonetics { get; set; }
Property Value
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
RegularWork
Gets or sets a value of RegularWork.
[EntityField]
public Duration RegularWork { get; set; }
Property Value
RemainingCost
Gets or sets a value of RemainingCost.
[EntityField]
public decimal RemainingCost { get; set; }
Property Value
RemainingOvertimeCost
Gets or sets a value of RemainingOvertimeCost.
[EntityField]
public decimal RemainingOvertimeCost { get; set; }
Property Value
RemainingOvertimeWork
Gets or sets a value of RemainingOvertimeWork.
[EntityField]
public Duration RemainingOvertimeWork { get; set; }
Property Value
RemainingWork
Gets or sets a value of RemainingWork.
[EntityField]
public Duration RemainingWork { get; set; }
Property Value
SV
Gets or sets a value of SV.
[EntityField]
public double SV { get; set; }
Property Value
StandardRate
Gets or sets a value of StandardRate.
[EntityField]
public decimal StandardRate { get; set; }
Property Value
StandardRateFormat
Gets or sets a value of StandardRateFormat.
[EntityField]
public RateFormatType StandardRateFormat { get; set; }
Property Value
Start
Gets or sets a value of Start.
[EntityField]
public DateTime Start { get; set; }
Property Value
TimephasedData
Gets or sets an instance of Aspose.Tasks.TimephasedDataCollection class for this object.
public TimephasedDataCollection TimephasedData { get; set; }
Property Value
Remarks
Reading supported for XML format only.
Type
Gets or sets a value of Type.
[EntityField]
public ResourceType Type { get; set; }
Property Value
Uid
Gets or sets a value of Uid.
[EntityField]
public int Uid { get; set; }
Property Value
WindowsUserAccount
Gets or sets a value of WindowsUserAccount.
[EntityField]
public string WindowsUserAccount { get; set; }
Property Value
Work
Gets or sets a value of Work.
[EntityField]
public Duration Work { get; set; }
Property Value
WorkVariance
Gets or sets a value of WorkVariance.
[EntityField]
public double WorkVariance { get; set; }
Property Value
Workgroup
Gets or sets a value of Workgroup.
[EntityField]
public WorkGroupType Workgroup { get; set; }
Property Value
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
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
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
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
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
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
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
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
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
short string which represents resource object. </datetime,></datetime,></t,></t,></t,></t></t,></t,></t,></t></resource>