Resource Class

Represents a resource in a project.
Inheritance Hierarchy
SystemObject
  Aspose.TasksResource

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.6
Syntax
public class Resource : IEquatable<Resource>

The Resource type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleAssignments
Gets a collection of resource assignments for this object.
Public propertyCode exampleAvailabilityPeriods
Gets a the instance of the AvailabilityPeriodCollection class. The collection of periods during which a resource is available.
Public propertyCode exampleBaselines
Gets a BaselineCollection instance for this object. The baseline values for a resource.
Public propertyCode exampleExtendedAttributes
Gets the values of an extended attribute.
Public propertyCode exampleOutlineCode
Gets an OutlineCodeCollection object. The value of an outline code.
Public propertyCode exampleParentProject
Gets parent project for this container.
Public propertyCode exampleRates
Gets a the instance of the RateCollection class for this object. The collection of periods and rates associated with each one.
Public propertyCode exampleTimephasedData
Gets or sets an instance of TimephasedDataCollection class for this object.
Methods
  NameDescription
Public methodCode exampleDelete
Deletes a resource and its assignments from project.
Public methodCode exampleEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ObjectEquals(Object).)
Public methodCode exampleEquals(Resource)
Returns a value indicating whether this instance is equal to a specified instance of the Resource class.
Protected methodFinalize (Inherited from Object.)
Public methodCode exampleGetT
Returns the value to which the property is mapped in this container.
Public methodCode exampleGetHashCode
Returns a hash code value for the instance of the Resource class.
(Overrides ObjectGetHashCode.)
Public methodCode exampleGetTimephasedData(DateTime, DateTime)
Returns TimephasedDataCollection for this object with TimephasedDatavalues within given start and end dates.
Public methodCode exampleGetTimephasedData(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.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode exampleSet(KeyDateTime, RscKey, DateTime)
Maps the specified property to the specified value in this container.
Public methodCode exampleSetT(KeyT, RscKey, T)
Maps the specified property to the specified value in this container.
Public methodCode exampleToString
Returns short string representation of the instance of the Resource class. The exact details of the representation are unspecified and subject to change.
(Overrides ObjectToString.)
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