EnterpriseResourceCostRateCollection class

inherits members from ClientObjectCollection

Collection of EnterpriseResourceCostRates.

Syntax

CSOM

class EnterpriseResourceCostRateCollection 

JSOM

PS.EnterpriseResourceCostRateCollection

REST Interface

Supported.

PS.EnterpriseResourceCostRateCollection

http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/EnterpriseResources('{resourceId}')/CostRateTables('{CostRateTableName}')/CostRates

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name .NET JSOM REST Type Description
[Integer] EnterpriseResourceCostRate Gets a EnterpriseResourceCostRate from the collection at the specified index.
Item EnterpriseResourceCostRate Gets a EnterpriseResourceCostRate from the collection at the specified index.

Methods

Name .NET JSOM REST Return Type Description
Add(CostRateCreationInformation parameters) EnterpriseResourceCostRate Adds the EnterpriseResourceCostRate that is specified by the CostRateCreationInformation object to the collection.
GetByDateUrl(String date) EnterpriseResourceCostRate Return the cost rate that is effective after the date provided.
Remove(EnterpriseResourceCostRate costRate) Boolean Removes the specified EnterpriseResourceCostRate from the collection.


Method Details

Add(CostRateCreationInformation parameters)

Adds the EnterpriseResourceCostRate that is specified by the CostRateCreationInformation object to the collection.

Syntax
EnterpriseResourceCostRate Add(CostRateCreationInformation parameters)
Parameters
Name Type Description
parameters CostRateCreationInformation The properties that can be set when creating a enterprise resource cost rate.
Return Value

EnterpriseResourceCostRate

GetByDateUrl(String date)

Return the cost rate that is effective after the date provided.

Syntax
EnterpriseResourceCostRate GetByDateUrl(String date)
Parameters
Name Type Description
date String Effective date.
Return Value

EnterpriseResourceCostRate

Remove(EnterpriseResourceCostRate costRate)

Removes the specified EnterpriseResourceCostRate from the collection.

Syntax
Boolean Remove(EnterpriseResourceCostRate costRate)
Parameters
Name Type Description
costRate EnterpriseResourceCostRate The EnterpriseResourceCostRate to remove.
Return Value

Boolean

See Also

CostRateCreationInformation
EnterpriseResourceCostRate
EnterpriseResourceCostRateTable