Class Resource

Resource class

Represents a resource in a project.

public class Resource : IEquatable<Resource>

Properties

NameDescription
AccrueAt { get; set; }Gets or sets a value of AccrueAt.
ActiveDirectoryGuid { get; set; }Gets or sets a value of ActiveDirectoryGuid.
ActualCost { get; set; }Gets or sets a value of ActualCost.
ActualOvertimeCost { get; set; }Gets or sets a value of ActualOvertimeCost.
ActualOvertimeWork { get; set; }Gets or sets a value of ActualOvertimeWork.
ActualOvertimeWorkProtected { get; set; }Gets or sets a value of ActualOvertimeWorkProtected.
ActualWork { get; set; }Gets or sets a value of ActualWork.
ActualWorkProtected { get; set; }Gets or sets a value of ActualWorkProtected.
ACWP { get; set; }Gets or sets a value of ACWP.
AssignmentOwner { get; set; }Gets or sets a value of AssignmentOwner.
AssignmentOwnerGuid { get; set; }Gets or sets a value of AssignmentOwnerGuid.
Assignments { get; }Gets a collection of resource assignments for this object.
AvailabilityPeriods { get; }Gets a the instance of the AvailabilityPeriodCollection class. The collection of periods during which a resource is available.
AvailableFrom { get; set; }Gets or sets a value of AvailableFrom.
AvailableTo { get; set; }Gets or sets a value of AvailableTo.
Baselines { get; }Gets a BaselineCollection instance for this object. The baseline values for a resource.
BCWP { get; set; }Gets or sets a value of BCWP.
BCWS { get; set; }Gets or sets a value of BCWS.
BookingType { get; set; }Gets or sets a value of BookingType.
BudgetCost { get; set; }Gets or sets a value of BudgetCost.
BudgetWork { get; set; }Gets or sets a value of BudgetWork.
Calendar { get; set; }Gets or sets a value of Calendar.
CanLevel { get; set; }Gets or sets a value indicating whether CanLevel is set or not.
Code { get; set; }Gets or sets a value of Code.
Cost { get; set; }Gets or sets a value of Cost.
CostCenter { get; set; }Gets or sets a value of CostCenter.
CostPerUse { get; set; }Gets or sets a value of CostPerUse.
CostVariance { get; set; }Gets or sets a value of CostVariance.
Created { get; set; }Gets or sets a value of Created.
CV { get; set; }Gets or sets a value of CV.
EMailAddress { get; set; }Gets or sets a value of EMailAddress.
ExtendedAttributes { get; }Gets the values of an extended attribute.
Finish { get; set; }Gets or sets a value of Finish.
Group { get; set; }Gets or sets a value of Group.
Guid { get; set; }Gets or sets a value of Guid.
Hyperlink { get; set; }Gets or sets the title or explanatory text of a hyperlink associated with a resource.
HyperlinkAddress { get; set; }Gets or sets the address for a hyperlink associated with a resource.
HyperlinkSubAddress { get; set; }Gets or sets the specific location in a document in a hyperlink associated with a resource.
Id { get; set; }Gets or sets a value of Id.
Inactive { get; set; }Gets or sets a value indicating whether Inactive is set or not.
Initials { get; set; }Gets or sets a value of Initials.
IsBudget { get; set; }Gets or sets a value indicating whether IsBudget is set or not.
IsCostResource { get; set; }Gets or sets a value indicating whether IsCostResource is set or not.
IsEnterprise { get; set; }Gets or sets a value indicating whether IsEnterprise is set or not.
IsGeneric { get; set; }Gets or sets a value indicating whether IsGeneric is set or not.
IsNull { get; set; }Gets or sets a value indicating whether IsNull is set or not.
virtual IsRoot { get; }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.
IsTeamAssignmentPool { get; set; }Gets or sets a value indicating whether IsTeamAssignmentPool is set or not.
MaterialLabel { get; set; }Gets or sets a value of MaterialLabel.
MaxUnits { get; set; }Gets or sets a value of MaxUnits.
Name { get; set; }Gets or sets a value of Name.
NotesRTF { get; set; }Gets or sets a value of NotesRTF.
NotesText { get; set; }Gets or sets a value of NotesText.
OutlineCode { get; }Gets an OutlineCodeCollection object. The value of an outline code.
Overallocated { get; set; }Gets or sets a value indicating whether Overallocated is set or not.
OvertimeCost { get; set; }Gets or sets a value of OvertimeCost.
OvertimeRate { get; set; }Gets or sets a value of OvertimeRate.
OvertimeRateFormat { get; set; }Gets or sets a value of OvertimeRateFormat.
OvertimeWork { get; set; }Gets or sets a value of OvertimeWork.
ParentProject { get; }Gets parent project for this container.
PeakUnits { get; set; }Gets or sets a value of PeakUnits.
PercentWorkComplete { get; set; }Gets or sets a value of PercentWorkComplete.
Phonetics { get; set; }Gets or sets a value of Phonetics.
Rates { get; }Gets a the instance of the RateCollection class for this object. The collection of periods and rates associated with each one.
RegularWork { get; set; }Gets or sets a value of RegularWork.
RemainingCost { get; set; }Gets or sets a value of RemainingCost.
RemainingOvertimeCost { get; set; }Gets or sets a value of RemainingOvertimeCost.
RemainingOvertimeWork { get; set; }Gets or sets a value of RemainingOvertimeWork.
RemainingWork { get; set; }Gets or sets a value of RemainingWork.
StandardRate { get; set; }Gets or sets a value of StandardRate.
StandardRateFormat { get; set; }Gets or sets a value of StandardRateFormat.
Start { get; set; }Gets or sets a value of Start.
SV { get; set; }Gets or sets a value of SV.
TimephasedData { get; set; }Gets or sets an instance of TimephasedDataCollection class for this object.
Type { get; set; }Gets or sets a value of Type.
Uid { get; set; }Gets or sets a value of Uid.
WindowsUserAccount { get; set; }Gets or sets a value of WindowsUserAccount.
Work { get; set; }Gets or sets a value of Work.
Workgroup { get; set; }Gets or sets a value of Workgroup.
WorkVariance { get; set; }Gets or sets a value of WorkVariance.

Methods

NameDescription
Delete()Deletes a resource and its assignments from project.
override Equals(object)Returns a value indicating whether this instance is equal to a specified object.
Equals(Resource)Returns a value indicating whether this instance is equal to a specified instance of the Resource class.
Get<T>(Key<T, RscKey>)Returns the value to which the property is mapped in this container.
override GetHashCode()Returns a hash code value for the instance of the Resource class.
GetTimephasedData(DateTime, DateTime)Returns TimephasedDataCollection for this object with TimephasedDatavalues within given start and end dates.
GetTimephasedData(DateTime, DateTime, TimephasedDataType)Returns an instance of the TimephasedDataCollection class for this object with the TimephasedData values within given start and end dates of specified TimephasedDataType.
Set(Key<DateTime, RscKey>, DateTime)Maps the specified property to the specified value in this container.
Set<T>(Key<T, RscKey>, T)Maps the specified property to the specified value in this container.
override ToString()Returns short string representation of the instance of the Resource class. The exact details of the representation are unspecified and subject to change.

Examples

Shows how to add project resources.

var project = new Project();

// Add resources
project.Resources.Add("Resource");

project.Save(OutDir + "CreateResources_out.xml", SaveFileFormat.Xml);

See Also