Table of contents
API
TOC
Collapse the table of content
Expand the table of content

EnterpriseResourceCostRateCollection class

Nadin Merali|Last Updated: 5/6/2017

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.NETJSOMRESTTypeDescription
[Integer]EnterpriseResourceCostRateGets a EnterpriseResourceCostRate from the collection at the specified index.
ItemEnterpriseResourceCostRateGets a EnterpriseResourceCostRate from the collection at the specified index.

Methods

Name.NETJSOMRESTReturn TypeDescription
Add(CostRateCreationInformation parameters)EnterpriseResourceCostRateAdds the EnterpriseResourceCostRate that is specified by the CostRateCreationInformation object to the collection.
GetByDateUrl(String date)EnterpriseResourceCostRateReturn the cost rate that is effective after the date provided.
Remove(EnterpriseResourceCostRate costRate)BooleanRemoves 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
NameTypeDescription
parametersCostRateCreationInformationThe 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
NameTypeDescription
dateStringEffective date.
Return Value

EnterpriseResourceCostRate

Remove(EnterpriseResourceCostRate costRate)

Removes the specified EnterpriseResourceCostRate from the collection.

Syntax
Boolean Remove(EnterpriseResourceCostRate costRate)
Parameters
NameTypeDescription
costRateEnterpriseResourceCostRateThe EnterpriseResourceCostRate to remove.
Return Value

Boolean

See Also

CostRateCreationInformation
EnterpriseResourceCostRate
EnterpriseResourceCostRateTable

© 2018 Microsoft